Angularjs - How to change background color using radio button
问题 On my page, I have dynamically created radio buttons. I want to change wrapper background color when radio button is selected. following is my code <section ng-repeat="list in myList"> <div class="radioWrapper"> <input type="radio" name="{{list.category}}" ng-model="list.name"> <label>{{list.name}} </label> </div> </section> I want to add "selectedRadioBg" class at the radioWrapper when each radio is selected. Appreciate any help 回答1: <section ng-repeat="list in myList"> <div ng-class=