I just started writing my ember app and i’m having problems structuring the base routes. My application needs to be protected by a login page that is presented to the user if they are not authenticated. This /login route shouldn’t contain any of the navigation, footers, and side-menu’s that are present in the rest of the whole application. I started off by adding all of those components to the application.hbs which is cool because it is rendered with every route. But for the /login route and potentially any other unauthorized user routes this isn’t the case.
I’ve seen this explanation on stack overflow about it: http://stackoverflow.com/questions/28251084/template-without-application-hbs-as-root Unfortunately i don’t have enough reputation to comment and ask for a better explanation.
This post tries to explain it but its not quite doing it for me. http://stackoverflow.com/questions/14973556/what-is-the-difference-between-a-route-and-resource-in-new-router-api
The docs don’t seem to mention resource either.
What would be the best way to set the /login route off on its own?