Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.

Is $previousState working in v.0.1.3? #351

Open
random-one opened this issue Nov 18, 2016 · 1 comment
Open

Is $previousState working in v.0.1.3? #351

random-one opened this issue Nov 18, 2016 · 1 comment

Comments

@random-one
Copy link

random-one commented Nov 18, 2016

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

@zcfDafei
Copy link

Do you have "$previousState" examples?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants