import { Component , OnInit } from '@angular/core' ; @ Component ( { selector : 'thy-anchor-nav-fake-example' , templateUrl : './nav-fake.component.html' } ) export class ThyAnchorNavFakeExampleComponent implements OnInit { demos : number [ ] = [ ] ; constructor ( ) { } ngOnInit ( ) { for ( let index = 0 ; index < 20 ; index ++ ) { this . demos . push ( index ) ; } } }