Nesting ng-views in angular js

前端 未结 6 584
失恋的感觉
失恋的感觉 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:42

    I sincerely doubt this is idiomatic Angular (and it's mentioned above that there is possible cross-browser issues), but my ng-include solution for having an "all" view with my other views nested inside something like an all.html:

        

    This worked for me but felt like it was going against the grain of the framework. I will personally be trying something like what Eamon links to on my next pass.

提交回复
热议问题