vendredi 11 septembre 2015

Checkbox true if two values match in ng-repeat loop

Does anyone have an example, or know how to check a checkbox within an ng-repeat if two or more values are true?

Example:

<div ng-repeat="x in retults">
     <input type="checkbox" ng-checked="x.val1 == true && x.val2 == true" />
<div>

Thanks!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire