src/app/shared/pipes/time-duration.pipe.ts
name | crmTimeDuration |
transform | ||||||||||||
transform(value: any, ...args: any[])
|
||||||||||||
Defined in src/app/shared/pipes/time-duration.pipe.ts:7
|
||||||||||||
Parameters :
Returns :
any
|
import {PipeTransform, Pipe} from "@angular/core";
import {TimeDuration} from "../utils/time-duration";
@Pipe({name: 'crmTimeDuration'})
export class TimeDurationPipe implements PipeTransform {
transform(value: any, ...args): any {
return TimeDuration.toString(+value);
}
}