// //////////////////////////////////////////////////////////////////////// // // isActive ( page : any ) { // console.log ( `::isActive`, page ); let childNav = this.nav.getActiveChildNav ( ); // Tabs are a special case because they have their own navigation if ( childNav ) { if ( childNav.getSelected() && childNav.getSelected().root === page.tabComponent ) { return 'primary'; } return; } if ( this.nav.getActive() && this.nav.getActive().component === page.component ) { return 'primary'; } return; }