import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ; import { Router } from '@angular/router' ; import { FormatterService } from '@core/formatter.service' ; /**
 * Technical shake-alert summary component, shown in the expansion panel below
 * the header/title
 */ @ Component ( { changeDetection : ChangeDetectionStrategy . OnPush , selector : 'technical-shake-alert-summary' , styleUrls : [ './shake-alert-summary.component.scss' ] , templateUrl : './shake-alert-summary.component.html' } ) export class ShakeAlertSummaryComponent { columnsToDisplay = [ 'catalog' , 'time' ] ; @ Input ( ) event : any ; @ Input ( ) products : Array < any > ; router : Router ; constructor ( public formatterService , router ) { this . router = router ; } param str returns { Date } toDate ( str ) { return new Date ( str ) ; } }