import { Component } from '@angular/core' ; title @ Component ( { selector : 'tab-nav-bar-basic-example' , templateUrl : 'tab-nav-bar-basic-example.html' , styleUrls : [ 'tab-nav-bar-basic-example.css' ] , } ) export class TabNavBarBasicExample { links = [ 'First' , 'Second' , 'Third' ] ; activeLink = this . links [ 0 ] ; background = '' ; toggleBackground ( ) { this . background = this . background ? '' : 'primary' ; } }