import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'sharedStatus' } ) export class StatusPipe implements PipeTransform { param product transform ( product ) { try { return product . status . toUpperCase ( ) ; } catch ( e ) { return '' ; } } }