import { ChangeDetectionStrategy , Component , Input , OnInit } from '@angular/core' ; param product @ Component ( { changeDetection : ChangeDetectionStrategy . OnPush , selector : 'executive-pager-pin' , styleUrls : [ './pager-pin.component.scss' ] , templateUrl : './pager-pin.component.html' } ) export class PagerPinComponent implements OnInit { link = '../pager' ; pending : boolean ; @ Input ( ) product : any ; title = 'PAGER' ; isPending ( ) { if ( this . product && this . product . properties && this . product . properties . alertlevel && this . product . properties . alertlevel === 'pending' ) { return true ; } else { return false ; } } ngOnInit ( ) { this . pending = this . isPending ( ) ; } }