AngularJS: ng-model not binding to ng-checked for checkboxes

后端 未结 6 775
别跟我提以往
别跟我提以往 2020-11-22 08:06

I referred to this before asking this question.

AngularJs doesn't bind ng-checked with ng-model

If ng-checked is evaluated to true

6条回答
  •  终归单人心
    2020-11-22 08:30

    What you could do is use ng-repeat passing in the value of whatever you're iterating on to the ng-checked and from there utilising ng-class to apply your styles depending on the result.

    I did something similar recently and it worked for me.

提交回复
热议问题