Nesting ng-views in angular js

前端 未结 6 597
失恋的感觉
失恋的感觉 2020-12-02 12:14

I had two different apps in angular. During integration to a single application I had to

nest ng-views.

For sample (index.html) is



        
6条回答
  •  感情败类
    2020-12-02 13:01

    There are many third party libraries for nested views and routing. ui-router is already mentioned here, I would also suggest to take a look at this one:

    http://angular-route-segment.com

    It has the nested views capabilities which you ask for exactly, and it is much simpler to use than ui-router. In your example:

    index.html:

    view1.html:

    This is the partial for view 1.

    deep-view.html:

    This is the partial for view inside view1.

提交回复
热议问题