import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'thousandsSeparator' } ) export class ThousandsSeparatorPipe implements PipeTransform { transform ( value , args ? ) { return value ? value . toLocaleString ( ) : '' ; } }