Nesting ng-views in angular js

前端 未结 6 570
失恋的感觉
失恋的感觉 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 12:39

    If you do not want to turn to yet another library to solve your problem (not that there's anything wrong with that), you should also look into using directives and ng-switch and ng-show.

    This approach was given as an answer here :

    angular complex nesting of partials

提交回复
热议问题