import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ; import { FormatterService } from '@core/formatter.service' ; param value param uncertainty param uncertaintyUnits @ Component ( { changeDetection : ChangeDetectionStrategy . OnPush , selector : 'shared-uncertain-value' , styleUrls : [ './uncertain-value.component.scss' ] , templateUrl : './uncertain-value.component.html' } ) export class UncertainValueComponent { @ Input ( ) uncertainty : number ; @ Input ( ) uncertaintyUnits : string = null ; @ Input ( ) value = '' ; constructor ( public formatter ) { } return { number | boolean } hasUncertainty ( ) { return this . uncertainty || this . uncertainty === 0 ; } }