-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
This error occurs when angularPlayer service is used and soundManager directive exists on the page.
Example:
- Call
angularPlayer.addTrackinsideng-clickevent handler.
Note: Everyng-somethinghandler is executed in $apply phase by AngularJS. - Method
angularPlayer.addTrackbroadcastsplayer:playlistevent. - SoundManager directive catches the event.
scope.$on('player:playlist', function(event, data) {
scope.$apply(function() {
scope.playlist = data;
});
});Note: We are still in $apply phase, because angular events are handled synchronously.
4. Error occurs
Error: [$rootScope:inprog] $apply already in progress
The plunker is here http://plnkr.co/edit/77Fy0oJpvRrPrmG1YRbR?p=preview.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels