AngularJS ng-repeat - 仅重复孩子

时间:2014-06-12 18:02:43

标签: angularjs

我尝试在循环数据中显示,但不使用ng-repeat重复div。

示例:

<div ng-repeat="item in widget"  ng-include="includeFile(item.type)"></div>

输出:

<div class="ng-scope" ng-include="includeFile(item.type)" ng-repeat="item in widget">
data from template
</div>
<div class="ng-scope" ng-include="includeFile(item.type)" ng-repeat="item in widget">
data from template
</div>

我想在一个div中输出数据:

<div>
    data from template
    data from template
</div>

我如何在Angular中执行此操作?

0 个答案:

没有答案