import { Pipe , PipeTransform } from '@angular/core' ; import { CurrencyPipe } from "@angular/common" ; @ Pipe ( { name : 'currencySymbol' } ) export class CurrencySymbolPipe extends CurrencyPipe implements PipeTransform { transform ( value , args ? ) { let currency = super . transform ( 0 , value , true , '1.0-2' ) ; return currency . replace ( /[0-9]/g , '' ) ; } }