I am moving to Angular from Knockout, and I have a few issues. I\'m assuming that I must be doing something a non-angular type of way.
http://jsfiddle.net/LostInDaJungle
u can bind to a function
function CTRL ($scope) { $scope.val1 = 3; $scope.val2 = 4; $scope.sum = function(){ return ($scope.val1 *1 + $scope.val2 *1); };
}
it will work the same the binding expression will work but in much more complex cases we need functions