Posts by Loreno Oliveira • 31 points
1 post
-
3
votes1
answer194
viewsA: Error Angularjs
Probably the error of your code is that $apply takes as parameter a function to be executed. So the correct way to write this code would be: $scope.cancelChanges = function() { $scope.$apply(…