No Result
The stylized zero-match message — and where pagination for a result list actually lives, since the old Pager component is deprecated.
<NoResult> is a purely presentational, input-less message shown when a search genuinely matched nothing —
see Query for telling that state apart from a failed request, which is the caller's
responsibility, not this component's.
Minimal example
import { Component, inject } from "@angular/core";
import { NoResultComponent, QueryService } from "@sinequa/atomic-angular";
@Component({
selector: "results-component",
imports: [NoResultComponent],
template: `
@if (!queryService.failure() && queryService.result().rowCount === 0) {
<NoResult />
}
`,
})
export class ResultsComponent {
protected readonly queryService = inject(QueryService);
}The component takes no input: its icon and title are fixed, translated strings, and the icon's box stays square as it grows from one line to two (a long translation, a narrow column, mobile) — nothing is exposed to tune that.
Pitfalls
What's next
Sort Selector
A dropdown listing the sort choices a tab or query configuration actually offers, resolved from the current result rather than passed in by hand.
Missing Terms
Which of the query's terms this particular document doesn't contain, struck through, each a link to re-run the search requiring all of them.