alexcrack / angular-ui-notification

Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
MIT License
536 stars 169 forks source link

$apply to $applyAsync in .kill(true) #128

Open mikedaly opened 7 years ago

mikedaly commented 7 years ago

I was running into a situation where I was calling .kill(true) while already in a $digest cycle, which caused the .$apply call to fail. Seemed safer to not assume that you needed to start a new $digest.