In my angularjs application I have these lines of code
getGridPage('api/accounts/gettransactions') //$http call to server which sets the $scope
$scope.transactions = {}
and I'm getting $digest already in progress error. How can I avoid it?
Somewhere in getGridPage()
you're calling scope.$apply()
or scope.$digest
. Get rid of that call and the error will go away.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.