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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$location service doesn't explicitly trigger an eval because it assumes that it will be used to modify the state within an eval stage.
At the same time, it is possible to inject $location into other services which can run outside of eval stage (e.g. delay service which executes callbacks outside of eval), so these services need to explicitly call root.$eval(). But the docs, nor common wisdom makes it clear that this is actually needed, unless one looks at the source code.
The text was updated successfully, but these errors were encountered:
we should update docs and make no changes to the code. $location is designed to work within the scope lifecycle and if someone is using it outside of it, he/she is responsible for managing the lifecycle to get things to work properly.
$location service doesn't explicitly trigger an eval because it assumes that it will be used to modify the state within an eval stage.
At the same time, it is possible to inject $location into other services which can run outside of eval stage (e.g. delay service which executes callbacks outside of eval), so these services need to explicitly call root.$eval(). But the docs, nor common wisdom makes it clear that this is actually needed, unless one looks at the source code.
The text was updated successfully, but these errors were encountered: