ui-router-extras icon indicating copy to clipboard operation
ui-router-extras copied to clipboard

Is $previousState working in v.0.1.3?

Open random-one opened this issue 8 years ago • 1 comments

Here is my flow: I'm in a state like this root.home.stateA and the server returns 401 for a request fired in this state. A redirect to root.login is done in interceptor that catches the 401 status but before it I call $previousState.memo('login-redirect'). After a successful login I try to redirect to $previousState.get('login-redirect'), but it always returns null.

I tried also without giving a name to the previous state, but didn't work either.

angular-1.5.8 ui-router-0.3.1 ui-router-extras-0.1.3

random-one avatar Nov 18 '16 13:11 random-one

Do you have "$previousState" examples?

zcfDafei avatar Mar 10 '17 09:03 zcfDafei