Closed scottohara closed 9 years ago
Add Remember Me option that uses localStorage
The difference between deep links to the /accounts state (which works) vs the /schedules state (which doesn't) is that the root.accounts state has no resolves (the accounts list is fetched in the controller), whereas the root.schedules state tries to resolve the list of schedules first.
We need to somehow halt the processing of child state resolves until the root state is fully resolved (ie. the login modal has returned.
Possibly by attaching a then() to the modal.open().result?
Navigating directly to a state (eg. /schedules) when unauthenticated correctly presents the login modal, but after logging in the originally requested state doesn't render