0
我有一個表顯示嵌套的ng-repeat值。 HTML看起來像這樣。在嵌套的ng-repeat Angularjs中重複父行?
<table class="table">
<thead class="bgThead">
<tr>
<th>Environment</th>
<th>Configurations</th>
<th>Servers</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="environment in serverList.environments" ng-class-odd="''" ng-class-even="'dataTableOdd'">
<td>{{environment.Environment}}</td>
<td ng-repeat="servertypeinfo in environment.ServerTypeInfo">{{servertypeinfo.Type}}</td>
<td ng-repeat="servertypeinfo in environment.ServerTypeInfo">
{{servertypeinfo.ServerConfigInfo.length}}
<td ng-repeat="servers in servertypeinfo.ServerConfigInfo">{{servers.ServerName}}</td>
</td>
</tr>
</tbody>
</table>
現在,當有孩子NG重複多個值,則TD所得到重複,而不是我要重複整行,用相同的價值觀,除了新來的孩子的價值。嵌套ng重複也是一樣。我做了一個顯示我所瞄準的東西。
http://plnkr.co/edit/vLw6MCO8NGoFYxaCKeJ0?p=preview