import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'mwlReplace' } ) export class Replace implements PipeTransform { transform ( input = '' , find = '' , replaceWith = '' ) { return input . replace ( find , replaceWith ) ; } }