Monday, October 17, 2016

At any point in time there can be only one $digest or $apply operation in progress

So when you try to trigger a event, there is possibility that $digest or $apply is already in progress.

There is a way out to overcome that situation with the use of $timeout. So if you want to trigger some event from inside other event callback code, you have wrap the code inside $timeout :

$timeout(function() {event.target.click();});



Related Posts:

  • AEM (CQ5) - partials for AngularJS When developing Single page app in aem, You would have to include partials inside the master page and at the same time you would want that to be author-able  on its own. So You can use the concept of partials as follows… Read More
  • angularjs custom trigger $rootScope:inprog error At any point in time there can be only one $digest or $apply operation in progress So when you try to trigger a event, there is possibility that $digest or $apply is already in progress. There is a… Read More

0 comments:

Post a Comment

Powered by Blogger.

Followers

Best Price Amazon Portal

Amazon Best Offers