Well I would probably keep my application state outside of the route if they don't correspond. Pass it to each control and listen to e.g. '{state} credentials' so when the user logs in you set state.attr('credentials', loginData);
↧