-1
Hello,
I am applying the following function in my Angularjs controller:
$scope.cancelChanges = function() {
$scope.name = $scope.namebackup;
$scope.$apply();
};
However, when running $apply(), it shows me the following error:
Error: [$rootScope:inprog] http://errors.angularjs.org/1.2.15/$rootScope/inprog?p0=%24apply
at Error (native)
at http://local/vendor/bower/angular/angular.min.js:6:450
at m (http://local/vendor/bower/angular/angular.min.js:101:443)
at h.$apply (http://local/vendor/bower/angular/angular.min.js:108:301)
someone knows what can be?
The problem is that when I only do $Scope.name = $Scope.namebackup it doesn’t update my view, it just updates my Scope @loreno-oliveira
– Caio Gomes
You can edit the topic and add html?
– Loreno Oliveira
I was able to solve it but only by removing the parentheses from the :D application
– Caio Gomes