UNPKG

@logo-software/tree

Version:

A tree view represents a hierarchical view of information, where each item can have a number of subitems.

39 lines (38 loc) 1.32 kB
/** * @license * Copyright LOGO YAZILIM SANAYİ VE TİCARET A.Ş. All Rights Reserved. * * Save to the extent permitted by law, you may not use, copy, modify, * distribute or create derivative works of this material or any part * of it without the prior written consent of LOGO YAZILIM SANAYİ VE TİCARET A.Ş. Limited. * Any reproduction of this material must contain this notice. */ import { AfterContentInit, EventEmitter, OnDestroy } from '@angular/core'; import { Router, RouterLinkActive } from '@angular/router'; /** * Emits the defined method when route is active and set a class name when route is active. * * __Usage Example:__ * * ```html * <a * [routerLink]="['home']" * routerLinkActive="add-active-css-class" * #reference="routerLinkActive" * [isActiveRoute]="reference" * (isActiveRouteEmitter)="isActiveRoute($event)" * > * Link to Home * </a> - this link is {{route && route.isActive ? 'active' : 'not active'}} * ``` */ export declare class IsActiveRouteDirective implements AfterContentInit, OnDestroy { private router; isActiveRoute: RouterLinkActive; isActiveRouteEmitter: EventEmitter<RouterLinkActive>; private subscription; constructor(router: Router); ngAfterContentInit(): void; ngOnDestroy(): void; private update; }