Skip to content Skip to sidebar Skip to footer

Using Different Page Layout For Login Page

I'm trying to implement a SPA with AngularJS. I have a main page layout where the left side deals with navigation links and the top right corner contains username and user preferen

Solution 1:

I am also in the process of implementing this feature. I will be treating login and the authenticated application as two different SPAs. So there will be 2 different server routes one for the login and one for the application.

This will allow me to not have my ng-view on the body tag so I don't need to have my header and sidebar logic replicated on every route.

Solution 2:

You can use ng-view on the body tag so you can change the whole layout

<body ng-view>
</body>

Post a Comment for "Using Different Page Layout For Login Page"