9 lines
229 B
TypeScript
9 lines
229 B
TypeScript
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);
|
|
}
|
|
}
|