似乎有轉換ui.bootstrap.buttons與NG-重複使用的問題。該ui.bootstrap.buttons例子和文檔是在這裏:http://angular-ui.github.io/bootstrap/ui.bootstrap.buttons與NG-重複
Bascially默認的例子很好地工作:http://plnkr.co/edit/2O81y57GtfP6EPNH9qYa?p=preview
<div class="btn-group">
<label class="btn btn-primary" ng-model="radioModel" btn-radio="'Left'">Left</label>
<label class="btn btn-primary" ng-model="radioModel" btn-radio="'Middle'">Middle</label>
<label class="btn btn-primary" ng-model="radioModel" btn-radio="'Right'">Right</label>
</div>
但是,當它轉化利用NG重複,它打破:http://plnkr.co/edit/nzx1VTGN4Q59JlFCU53V?p=preview
<div class="btn-group">
<label ng-repeat="test in ['Left', 'Middle', 'Right']" class="btn btn-primary" ng-model="radioModel" btn-radio="'{{test}}'">{{test}}</label>
</div>
繁瑣,它工作在你普拉克。 'UIB鍵式radio'。在我的plunk中使用ng-repeat時,它不會改變模型的值。 http://plnkr.co/edit/L4gRDqhvuUKDl9NbpIR6?p=preview 我應該採取:'$ parent.model'。 –