import { Component , ChangeDetectionStrategy } from "@angular/core" ; import { Link } from "./../../link" ; let menuLinks = [ new Link ( "HTTP POST" , "/http/http-post" ) , new Link ( "HTTP GET" , "/http/http-get" ) , new Link ( "HTTP PUT" , "/http/http-put" ) , new Link ( "HTTP DELETE" , "/http/http-delete" ) ] ; @ Component ( { moduleId : module . id , templateUrl : "./../../examples-list.component.html" , changeDetection : ChangeDetectionStrategy . OnPush } ) export class HttpExamplesComponent { public links : Array < Link > ; constructor ( ) { this . links = [ ] ; for ( let i = 0 ; i < menuLinks . length ; i ++ ) { this . links . push ( menuLinks [ i ] ) ; } } }