Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Something along the lines of reloadOnPathParams in ngRoute #7925

Closed
alethea opened this issue Jun 20, 2014 · 0 comments
Closed

Something along the lines of reloadOnPathParams in ngRoute #7925

alethea opened this issue Jun 20, 2014 · 0 comments

Comments

@alethea
Copy link

alethea commented Jun 20, 2014

It would be nice to have an option on a route to only reload the view when path params change, much like reloadOnSearch only reloads the view when $location.search() changes.

E.g.: If route /foo/:id has reloadOnPathParams = false set, then moving from /foo/id1 to /foo/id2 would only broadcast a $routeUpdate event, and not reload the view and re-instanciate the controller.

@btford btford added this to the Backlog milestone Jul 21, 2014
gkalpak added a commit to gkalpak/angular.js that referenced this issue Jan 3, 2017
Enables users to specify that a particular route should not be reloaded after a
URL change (including a change in `$location.path()`), if the new URL maps to
the same route.
The default behavior is still to always load the matched route when any part of
the URL changes.

Related to angular#1699, angular#5860, angular#14999 (potentially closing the first two).

Fixes angular#7925
gkalpak added a commit to gkalpak/angular.js that referenced this issue May 23, 2018
Enables users to specify that a particular route should not be reloaded after a
URL change (including a change in `$location.path()`), if the new URL maps to
the same route.
The default behavior is still to always load the matched route when any part of
the URL changes.

Related to angular#1699, angular#5860, angular#14999 (potentially closing the first two).

Fixes angular#7925
gkalpak added a commit to gkalpak/angular.js that referenced this issue May 26, 2018
Enables users to specify that a particular route should not be reloaded after a
URL change (including a change in `$location.path()`), if the new URL maps to
the same route.
The default behavior is still to always load the matched route when any part of
the URL changes.

Related to angular#1699, angular#5860, angular#14999 (potentially closing the first two).

Fixes angular#7925
gkalpak added a commit to gkalpak/angular.js that referenced this issue Jun 7, 2018
Enables users to specify that a particular route should not be reloaded after a
URL change (including a change in `$location.path()`), if the new URL maps to
the same route.
The default behavior is still to always load the matched route when any part of
the URL changes.

Related to angular#1699, angular#5860, angular#14999 (potentially closing the first two).

Fixes angular#7925
@gkalpak gkalpak closed this as completed in 60069e6 Jun 8, 2018
gkalpak added a commit that referenced this issue Jun 8, 2018
Enables users to specify that a particular route should not be reloaded after a
URL change (including a change in `$location.path()`), if the new URL maps to
the same route.
The default behavior is still to always load the matched route when any part of
the URL changes.

Related to #1699, #5860, #14999 (potentially closing the first two).

Fixes #7925

Closes #15002
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants