Default query name resolver
An Angular route resolver that supplies the application's default query name to a route with no explicit one.
Registered on a route
import { Routes } from "@angular/router";
import { queryNameResolver } from "@sinequa/atomic-angular";
export const routes: Routes = [
{ path: "results", resolve: { queryName: queryNameResolver }, loadComponent: () => import("./results/page") },
];queryNameResolver reads AppStore.getDefaultQuery() and resolves to its name, or an empty string if the
application has no default query configured yet — it never throws, so a route that resolves it does not need
to guard against a missing application configuration on its own.
Pitfalls
Cross-cutting services
Registering your own route components, sending custom audit events, calling a JsonMethod plugin, and reading the route the user navigated away from.
Results
Running a query and rendering what comes back — the query service, autocomplete, spelling correction, sorting, empty states, and the small display components a result list is built from.