import { Component } from '@angular/core'; import { IgxTabsBase } from '../tabs.base'; import { IgxTabsDirective } from '../tabs.directive'; import { NgFor, NgTemplateOutlet } from '@angular/common'; /** @hidden */ let NEXT_BOTTOM_NAV_ITEM_ID = 0; /** * Bottom Navigation component enables the user to navigate among a number of contents displayed in a single view. * * @igxModule IgxBottomNavModule * * @igxTheme igx-bottom-nav-theme * * @igxKeywords bottom navigation * * @igxGroup Layouts * * @remarks * The Ignite UI for Angular Bottom Navigation component enables the user to navigate among a number of contents * displayed in a single view. The navigation through the contents is accomplished with the tab buttons located at bottom. * * @example * ```html * * * * folder * Tab 1 * * * Content 1 * * * ... * * ``` */ @Component({ selector: 'igx-bottom-nav', templateUrl: 'bottom-nav.component.html', providers: [{ provide: IgxTabsBase, useExisting: IgxBottomNavComponent }], standalone: true, imports: [NgFor, NgTemplateOutlet] }) export class IgxBottomNavComponent extends IgxTabsDirective { /** @hidden */ protected override _disableAnimation = true; /** @hidden */ protected override componentName = 'igx-bottom-nav'; /** @hidden */ protected getNextTabId() { return NEXT_BOTTOM_NAV_ITEM_ID++; } }