import { Component , Input } from '@angular/core' ; @ Component ( { selector : 'forecast-number-table' , styleUrls : [ './forecast-number-table.component.scss' ] , templateUrl : './forecast-number-table.component.html' } ) export class ForecastNumberTableComponent { columnsToDisplay = [ 'space' , 'day' , 'week' , 'month' , 'year' ] ; columnTitles = { day : 'Day' , month : 'Month' , space : '' , week : 'Week' , year : 'Year' } ; @ Input ( ) forecast : any ; param index param item trackByIndex ( index , item ) { return index ; } }