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
When following links created by uiSref, any params present on the current state will be retained. This can lead to broken links since not all pages have the same params, and if they do the possible values may differ.
I suggest not keeping the stateParams when transitioning between two states that aren't in the same hierarchy (e.g. they or their ancestors are siblings).
My app has several unrelated pages with params for sorting/filtering/pagination. It doesn't make sense to have these params be retained between unrelated pages. Right now I've defined a 'clearParams' object which has all the params set to undefined, which I pass to uiSref. That works but it's ugly.
The text was updated successfully, but these errors were encountered:
When following links created by uiSref, any params present on the current state will be retained. This can lead to broken links since not all pages have the same params, and if they do the possible values may differ.
I suggest not keeping the stateParams when transitioning between two states that aren't in the same hierarchy (e.g. they or their ancestors are siblings).
My app has several unrelated pages with params for sorting/filtering/pagination. It doesn't make sense to have these params be retained between unrelated pages. Right now I've defined a 'clearParams' object which has all the params set to undefined, which I pass to uiSref. That works but it's ugly.
The text was updated successfully, but these errors were encountered: