import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'trimOutletName' } ) export class TrimOutletNamePipe implements PipeTransform { transform ( title , outletName ) { return title . replace ( ` - ${ outletName }` , '' ) ; } }