多NG-鉴于单一模板(角JS) [英] Multiple ng-view in single template (angular js)
本文介绍了多NG-鉴于单一模板(角JS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用js的角度构建一个动态Web应用程序。是否有可能有多个 NG-视图
上一个模板?
I am building a dynamic web app by using angular js. Is it possible to have multiple ng-view
on a single template?
推荐答案
您可以只有一个 NG-视图
。
您可以通过多种方式改变其内容: NG-包括
, NG-开关
或通过映射routeProvider不同的控制器和模板。
You can change its content in several ways: ng-include
, ng-switch
or mapping different controllers and templates through the routeProvider.
这篇关于多NG-鉴于单一模板(角JS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文