string ke angka angularjs
parseInt(....)
Super Stork
parseInt(....)
var stringToConvert = "759";
var numberValue = Number(stringToConvert);
console.log(numberValue);
//Returns 759
var stringToConvert = "A123";
var numberValue = Number(stringToConvert);
console.log(numberValue);
//Returns NaN
var x = "32";
var y: number = +x;//the "+" converts string to number
var x = "32";
var y = +x; // y: number