import { Component , OnInit , Input , ViewEncapsulation , ChangeDetectorRef } from '@angular/core' ; import { NavBarLinkRef } from '@alfresco/adf-extensions' ; @ Component ( { selector : 'app-expand-menu' , encapsulation : ViewEncapsulation . None , templateUrl : './expand-menu.component.html' , host : { class : 'app-expand-menu' } } ) export class ExpandMenuComponent implements OnInit { @ Input ( ) item : NavBarLinkRef ; constructor ( private cd ) { } ngOnInit ( ) { this . cd . detectChanges ( ) ; } trackById ( _index , obj ) { return obj . id ; } }