1 import { Pipe, PipeTransform } from '@angular/core';
3 import { FormatterService } from '../services/formatter.service';
8 export class DimlessPipe implements PipeTransform {
9 constructor(private formatter: FormatterService) {}
11 transform(value: any): any {
12 return this.formatter.format_number(value, 1000, ['', 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']);