Doubly nested views : UI-Router or UI-Bootstrap tabs / accordion?

前端 未结 3 1837
感情败类
感情败类 2020-12-08 03:14

I am a total Angular (and JS) nebwie (with plenty of other s/w development experience, however).

I want to develop something like this:

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 03:56

    I would recommend to use angular $routeProvider for your task. This will make easy to handle code and view fragments.

    With bootstrap you will need to put all the code on single page and that is less manageable. Have a look at

    http://viralpatel.net/blogs/angularjs-routing-and-views-tutorial-with-example/ and

    For nested views

    http://www.bennadel.com/blog/2441-Nested-Views-Routing-And-Deep-Linking-With-AngularJS.htm

    Also $routeProvider is better for navigation. Back Forward through view...

    Angular will load views when required.(Lazy loading.) So better for performance...

    Hope this will help.

提交回复
热议问题