@blox/material
Version:
Material Components for Angular
24 lines (23 loc) • 1.17 kB
TypeScript
import { ElementRef, Renderer2 } from '@angular/core';
import { Router, RouterLink, RouterLinkWithHref } from '@angular/router';
import { AbstractMdcTabDirective } from './mdc.tab.directive';
import { MdcEventRegistry } from '../../utils/mdc.event.registry';
/**
* Directive for a tab that triggers a route change. This directive must be used as a child of
* `mdcTabBar`. For a tab that doesn't use the angular routing module, drop the `routerLink`
* attribute.
*
* Selector `mdcTabRouter` is provided for backward compatibility and will be deprecated in the future.
* Use the selector `mdcTab` in combination with a `routerLink` attribute instead.
*/
export declare class MdcTabRouterDirective extends AbstractMdcTabDirective {
private router;
private link?;
private linkWithHref?;
private routerActive;
constructor(rndr: Renderer2, root: ElementRef, registry: MdcEventRegistry, router: Router, doc: any, link?: RouterLink | undefined, linkWithHref?: RouterLinkWithHref | undefined);
ngOnDestroy(): void;
ngAfterContentInit(): void;
ngOnChanges(): void;
}
export declare const TAB_ROUTER_DIRECTIVES: (typeof MdcTabRouterDirective)[];