import { Component } from '@angular/core' ; title @ Component ( { selector : 'tab-group-lazy-loaded-example' , templateUrl : 'tab-group-lazy-loaded-example.html' , styleUrls : [ 'tab-group-lazy-loaded-example.css' ] , } ) export class TabGroupLazyLoadedExample { tabLoadTimes : Date [ ] = [ ] ; getTimeLoaded ( index ) { if ( ! this . tabLoadTimes [ index ] ) { this . tabLoadTimes [ index ] = new Date ( ) ; } return this . tabLoadTimes [ index ] ; } }