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 has been archived by the owner on Sep 20, 2020. It is now read-only.
The page displays content about /books/1 instead of /books/2
It seems params are not regarded as part of a state.
I am not sure if this is intended. Is there a way to make above work so that it displays /books/2 ?
The text was updated successfully, but these errors were encountered:
I just noticed this behaviour in my app after updating both ui-router and ui-router-extras. I jumped in the ct-ui-router-extras.js and tracked the issue down to this,
// Duplicates logic in $state.transitionTo, primarily to find the pivot state (i.e., the "keep" value)
function equalForKeys(a, b, keys) {
if (!keys) {
keys = [];
for (var n in a) keys.push(n); // Used instead of Object.keys() for IE8 compatibility
}
for (var i = 0; i < keys.length; i++) {
var k = keys[i];
if (a[k] != b[k]) return false; // Not '===', values aren't necessarily normalized
}
return true;
}
'keys' is an Object and it fails getting the ".length", thus returning true. Adding
Example steps:
It seems params are not regarded as part of a state.
I am not sure if this is intended. Is there a way to make above work so that it displays /books/2 ?
The text was updated successfully, but these errors were encountered: