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?
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.