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 Feb 26, 2024. It is now read-only.
...allowing users to go back and forth between storage locations (stuff users keep in their pantry, stuff in the fridge, etc). Ideally, the controller could, on switching storage locations, go fetch the right set of items, then update the URL to preserve deep-linkability without creating a bunch of history entries (so that the "back" button takes them out of the current page rather than out of the current storage location) while allowing the user to go "back" (via browser back) from viewListItem to the correct storage location.
However, in ngRoute 1.x, we are unable to do this because any URL changes trigger navigation -- which means tearing down the controller and DOM and setting up new copies of the controller and DOM.
So I suppose I have two questions:
1.) Will such a use-case be supported by the 2.x router, and/or
2.) Are we simply doing things incorrectly (even for 1.x) with our current approach?
The text was updated successfully, but these errors were encountered:
In my org's app, we frequently have pages whose URLs contain filters. For example:
...allowing users to go back and forth between storage locations (stuff users keep in their pantry, stuff in the fridge, etc). Ideally, the controller could, on switching storage locations, go fetch the right set of items, then update the URL to preserve deep-linkability without creating a bunch of history entries (so that the "back" button takes them out of the current page rather than out of the current storage location) while allowing the user to go "back" (via browser back) from
viewListItem
to the correct storage location.However, in ngRoute 1.x, we are unable to do this because any URL changes trigger navigation -- which means tearing down the controller and DOM and setting up new copies of the controller and DOM.
So I suppose I have two questions:
1.) Will such a use-case be supported by the 2.x router, and/or
2.) Are we simply doing things incorrectly (even for 1.x) with our current approach?
The text was updated successfully, but these errors were encountered: