import { Pipe , PipeTransform } from '@angular/core' ; import { maskBr } from 'js-brasil' ; @ Pipe ( { name : 'percentage' , } ) export class PERCENTAGEPipe implements PipeTransform { transform ( percentageValue , decimalValue ) { return maskBr . porcentagem ( percentageValue , decimalValue ) ; } }