Twitter bootstrap 角度UI按钮工作不正常
我正在使用Angular UI,我已经加载了依赖项并获得了模块Twitter bootstrap 角度UI按钮工作不正常,twitter-bootstrap,angular-ui,angular-ui-bootstrap,Twitter Bootstrap,Angular Ui,Angular Ui Bootstrap,我正在使用Angular UI,我已经加载了依赖项并获得了模块'UI.bootstrap' 试图。这就是我正在尝试的: <div class="form-group"> <div class="btn-group"> <label ng-model="reactionType" uib-btn-radio="left" uncheckable class="btn btn-sucess">Alegría</label>
'UI.bootstrap'
试图。这就是我正在尝试的:
<div class="form-group">
<div class="btn-group">
<label ng-model="reactionType" uib-btn-radio="left" uncheckable class="btn btn-sucess">Alegría</label>
<label ng-model="reactionType" uib-btn-radio="middle" uncheckable class="btn btn-default">Tristeza</label>
<label ng-model="reactionType" uib-btn-radio="right" uncheckable class="btn btn-default">Tristeza</label>
</div>
</div>
阿莱格里亚
衰退
衰退
得到
因此,左侧的第一个按钮始终处于选中状态,而其他按钮似乎不可选中。我遗漏了什么?这非常微妙,但您遗漏了uib btn无线电值中的单引号
即:“‘左’”
修订代码如下:
<label ng-model="reactionType" uib-btn-radio="'left'" uncheckable class="btn btn-default">Alegría</label>
<label ng-model="reactionType" uib-btn-radio="'middle'" uncheckable class="btn btn-default">Tristeza</label>
<label ng-model="reactionType" uib-btn-radio="'right'" uncheckable class="btn btn-default">Tristeza</label>
Alegría
衰退
衰退
哎哟!真讨厌。在这上面花了几个小时,永远也不会发现。谢谢