I have a structural question regarding angulardart and sign in flows. I have a service that talks a server and has methods like login(), logout(), loggedIn(). That is all working really nicely in angular but i am looking for a best practice way to incorporate the login flow into my application.
The app requires the user to be logged in. So would i reroute to a custom "login" view at startup when the user is not logged in? Would i switch parts of my main index.html when not logged in? Would i create a custom component handling the login?
Is there a common angular pattern for such an scenario?