import { Injectable, Pipe, PipeTransform } from '@angular/core'; // helpers import { MethodsCalculationsHelper } from '../utils/helpers'; @Pipe({ name: 'thousandSeparator', standalone: true, }) @Injectable({ providedIn: 'root' }) export class ThousandSeparatorPipe implements PipeTransform { transform(value: any): any { return MethodsCalculationsHelper.convertNumberInThousandSep( MethodsCalculationsHelper.convertThousanSepInNumber( value ? value : '0' ) ); } }