File

src/app/shared/_pipes/token-ratio.pipe.ts

Metadata

Name tokenRatio

Methods

transform
transform(value: any, ...args: any[])
Parameters :
Name Type Optional
value any No
args any[] No
Returns : any
import {Pipe, PipeTransform} from '@angular/core';

@Pipe({name: 'tokenRatio'})
export class TokenRatioPipe implements PipeTransform {
  transform(value: any, ...args): any {
    return Number(value) / Math.pow(10, 6);
  }
}

result-matching ""

    No results matching ""