how to convert string to number in angular typescript code example
Example 1: string to number angularjs
parseInt(....)
Example 2: string to int typescript
Number('123') //123
Number('xxx') //NaN
parseInt(....)
Number('123') //123
Number('xxx') //NaN