0
我想讓我的菜單頁必須並排按鈕,但我需要使用ng-once重複一次有一個建議,以另一種方式或者是有一種用NG-重複如何在一次迭代中使用ng-repeat訪問2項(項目中的項目)
這裏做,這是對這個局部視圖我的HTML代碼
<div>
<div ng-repeat="buttons in menuButtons | exactMatchFilter">
<div class="btn-group btn-group-justified">
<!--Button 1-->
<div class="btn-group">
<button type="button" class="btn btn-default" ng-click="goToView1()">{{buttons[0].info}}</button>
</div>
<!--Button 2-->
<div class="btn-group">
<button type="button" class="btn btn-default" ng-click="goToView1()">{{buttons[1].info}}</button>
</div>
</div>
</div>
</div>
我只加按鈕[1],[0 ]所以你可以看到什麼即時嘗試做我知道你不能在這裏添加索引