我尝试在循环数据中显示,但不使用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中执行此操作?