import { Component , ChangeDetectionStrategy } from "@angular/core" ; import { Link } from "./../../link" ; let menuLinks = [ new Link ( "Paths" , "/file-system/paths" ) , new Link ( "Create" , "/file-system/usage" ) , new Link ( "Read" , "/file-system/read" ) , new Link ( "Update" , "/file-system/update" ) , new Link ( "Delete" , "/file-system/delete" ) ] ; @ Component ( { moduleId : module . id , templateUrl : "./../../examples-list.component.html" , changeDetection : ChangeDetectionStrategy . OnPush } ) export class FileSystemExamplesComponent { public links : Array < Link > ; constructor ( ) { this . links = [ ] ; for ( let i = 0 ; i < menuLinks . length ; i ++ ) { this . links . push ( menuLinks [ i ] ) ; } } }