string to number angularjs

JavaScript
parseInt(....)
Source

Also in JavaScript: