import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ; /**
 * Shared alert-level component
 */ @ Component ( { changeDetection : ChangeDetectionStrategy . OnPush , selector : 'shared-alert-level' , styleUrls : [ './alert-level.component.scss' ] , templateUrl : './alert-level.component.html' } ) export class AlertLevelComponent { alertLevel : string ; param alertColor @ Input ( ) set alert ( alertColor ) { this . alertLevel = alertColor ; } returns { string } get alert ( ) { return this . alertLevel ; } }