Probably, it is the simplest thing but I couldn\'t parse a string to Int in angular..
What I am trying to do:
var app = angular.module('myApp', []) app.controller('MainCtrl', ['$scope', function($scope){ $scope.num1 = 1; $scope.num2 = 1; $scope.total = parseInt($scope.num1 + $scope.num2); }]);
Demo: parseInt with AngularJS