At any point in time there can be only one
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();});
$digest
or $apply
operation in progressSo 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();});
0 comments:
Post a Comment