You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue happens on 0.2.18, but started from 0.2.16, last worked on 0.2.15 and discovered it.
I have a controller with a $watch on a method that uses a $stateParams, when changing state away from the page, the $watch is called one last time that it hadn't ever been prior. The new view is already loaded, and the $stateParams from the page with the controller aren't there.
I'm injecting $stateParams into the $rootScope in .run(). If I inject $stateParams directly into the controller its fine.
But why isn't the $watcher being cleared until after the view has changed? What changed in 0.2.16 that leaves the $watcher that much longer? Shouldn't it be cleared before the next view has been loaded?
The text was updated successfully, but these errors were encountered:
This issue happens on 0.2.18, but started from 0.2.16, last worked on 0.2.15 and discovered it.
I have a controller with a $watch on a method that uses a $stateParams, when changing state away from the page, the $watch is called one last time that it hadn't ever been prior. The new view is already loaded, and the $stateParams from the page with the controller aren't there.
I'm injecting $stateParams into the $rootScope in .run(). If I inject $stateParams directly into the controller its fine.
But why isn't the $watcher being cleared until after the view has changed? What changed in 0.2.16 that leaves the $watcher that much longer? Shouldn't it be cleared before the next view has been loaded?
The text was updated successfully, but these errors were encountered: