Thanks Sander. I got the idea now. I will go with the standard ngRoute approach. One last question. Although ngRoute solves the main content with ng-view, if there are three menu items on the top header and on click of each header menu item the side bar <li> group elements change, can I use the ngRoute approach. If yes, how should i do it then?
On Thu, Mar 6, 2014 at 4:28 PM, Sander Elias <[email protected]> wrote: > Pradeep, > > If you need nesting, use ui-router. I didn't get from your question that > you needed this. > If you have common elements for your application, such as navigation > headers and footers, you can include those using ng-include. > The 'main' content can be in a ng-view, so that's loaded dynamically. > No nesting needed for that scenario. perfectly solvable with ngRoute. > when you need your header /main/footer all depending on each other, you > need nesting, and uiRouter can help you there. > > If you are starting, start with ng-route, if you run into its boundaries, > you allways can switch over. > (also the angular team is working on a new router solution, perhaps you > might wait for that!) > > Regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/wWDPsfN3B3o/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
