A tab bar generated from the Angular Router's own child-route configuration, with automatic overflow into a dropdown and optional per-tab result counts.
<navbar-tabs> renders one tab per child route of a given router path — there is no tab list to pass in,
only a data object per route. The active tab tracks the current URL, and whatever doesn't fit collapses into
a "⋮" menu instead of clipping.
import { Component } from "@angular/core";import { NavbarTabsComponent } from "@sinequa/atomic-angular";@Component({ selector: "sample-component", imports: [NavbarTabsComponent], // Tabs come from the "search" route's children above — nothing else to pass. template: `<navbar-tabs path="search" [showCount]="true" />`,})export class SampleComponent {}
Renders nothing when path has no matching child routes in the router config.
Selection is a two-way model (selectedTab) kept in sync with currentPath()one-way only — an effect
pushes currentPath() into selectedTab, never the reverse — so a click (which updates selectedTab before
the URL actually changes) is not immediately overwritten by that same effect.
A tab shows no badge at all (not a 0 badge) unless its queryName matches the current result's query name;
it is disabled only once the matched count is exactly 0 — in the visible bar and in the overflow menu alike.