Commit 55a4c50f authored by wangqinghua's avatar wangqinghua

update

parent 05b7a4a6
import {Pipe, PipeTransform} from '@angular/core';
/**
* Generated class for the ToNumberPipe pipe.
*
* See https://angular.io/api/core/Pipe for more info on Angular Pipes.
*/
@Pipe({
name: 'toNumber',
})
export class ToNumberPipe implements PipeTransform {
/**
* Takes a value and makes it lowercase.
*/
transform(value: string, ...args) {
return Number(value);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment