SyntaxFix
Write A Post
Hire A Developer
Questions
I prefer to use an angular filter.
app.filter('num', function() { return function(input) { return parseInt(input, 10); }; });
then you can use this in the dom:
{{'10'|num}}
Here is a fiddle.
Hope this helped!