最佳答案
如何在 angularJS 中有条件地执行 ng- 包含?
例如,如果变量 x
被设置为 true
,那么我只想包含一些内容。
<div ng-include="/partial.html"></div>