import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'ngxNumberWithCommas' } ) export class NumberWithCommasPipe implements PipeTransform { transform ( input ) { return new Intl . NumberFormat ( ) . format ( input ) ; } }