-
Notifications
You must be signed in to change notification settings - Fork 27.4k
feat(ngRoute): add method $route.silent(path) for change location path without triggering route controller #5860
Conversation
…out triggering route controller
I'd love to see something similar working, or be able to pass a URL to the search method so we can do URL changes without reloading the view. |
+1 for this, i have been stumbling around this issue for days, and finally settled with reloadOnSearch, and location.search. but its not perfect, my routes are not that clean cause i am using ? now. Its more convenient for me to have normal route and use resolved param to decide showing or hiding some content, and eventually silently changing route when you have all dependencies on page already and you need to show some other sub content. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Couldnt wait the release. Published small angular module which adds silent routing change. Just define him before the ngRoute — https://github.com/garakh/ngSilent |
+1 |
02dc2aa
to
fd2d6c0
Compare
cad9560
to
f294244
Compare
e8dc429
to
e83fab9
Compare
4dd5a20
to
998c61c
Compare
This PR was submitted almost a year ago. @btford looks like you gave this some attention back in August, any suggestions on having this pulled into 1.3.x? |
+1 |
I need the same function for query string update without triggering route controller! :) Something like: |
@marcalj That is possible with the option |
@icruces Unfortunately if you set |
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).
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
AFAICT, the main usecase is changing the URL to something that would match the same route (with different If that is indeed the case, there is an alternative PR (#15002), which implements something equivalent with This has some benefits over this PR:
My understanding (from reading through this thread) is that #15002 would cover the usecase people brought up here. Does anyone have a usecase that would not be covered? |
Closing in favour of #15002 |
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
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
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
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
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
No description provided.