App Design Using Angular Js
Solution 1:
well in the project i'm working on with angularjs i took this approach: i had a header that was the main navigation system i made a controller for that that handled the navigation system and knew about where i am right now. i had an ngView which loaded my main content based on routes but sometimes i needed different templates to be loaded and compiled base on some event for instance ajax loaded tabs. i implemented these types of things using ngInclude that the main controller on the view had the responsibility to choose the template and include it, i believe there is no need for multiple ngViews you can simply use scopes to implement different things and handle different parts of your app with different controllers and data. i guess the best idea for you is to make your login page separate. i did this in my project. my login page was the only non-Ajax page that i had.
edit: for authetication part if you wish to implement the authentication through angular you migh want to check this.
Post a Comment for "App Design Using Angular Js"