import { Pipe , PipeTransform } from '@angular/core' ; import { maskBr } from 'js-brasil' ; @ Pipe ( { name : 'celular' , } ) export class CelularPipe implements PipeTransform { transform ( celularValue ) { return maskBr . celular ( celularValue ) ; } }