Closed livertonoliveira closed 7 years ago
You should not use uib-btn-radio
with ng-class="{'active': ... }"
because uib-btn-radio
will also add a class active to your element when ti match the ng-model
.
In your case yon can remove the ng-class
and change uib-btn-radio="'true'
" by uib-btn-radio="true"
(without the quote).
Awesome @bastienmoulia ! Thank you !!!
Hi,
The bug is the following:
I have one modal:
I discovered that when combined with radio, the ng-class do not work as expected.
If you try changing to:
<div class="btn-group" ng-class="{'active': vm.group.active === true }" >
Just for experience, you'll see that the following works well .