Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
196
rated 0 times [  198] [ 2]  / answers: 1 / hits: 26285  / 11 Years ago, wed, october 2, 2013, 12:00:00

In the route configuration of my AngularJS application most of the routes are defined with the option reloadOnSearch set to false as most of the time a page should not reload when search parameter changed.



But in rare circumstances I need a different behaviour where I need to reload the URL although only the search parameters changed.



Is there a way to force AngularJS to reload the URL although reloadOnSearch is set to false?


More From » angularjs

 Answers
7

I have not tried it, but something that you can try is.



In the $routeUpdate event handler call the $route.reload() method if you know the condition that should cause refresh of route.


[#75283] Tuesday, October 1, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kaitlynnb

Total Points: 402
Total Questions: 96
Total Answers: 109

Location: Trinidad and Tobago
Member since Fri, May 8, 2020
4 Years ago
kaitlynnb questions
;