I am trying to filter my results on multiple checkboxes.
Here is my JSFIDDLE
<div ng-app>
<div ng-controller="MainCtrl">
<li ng-repeat="o in languages" ng-model="lang.language.name">
<input type="checkbox">
,
`</li>
<br><br><br>
<li ng-repeat="o in bu">
<input type="checkbox" ng-model="bu.business_unit.name">
,
`</li>
<br><br><br>
<div ng-repeat="arr in array filter : lang | filter : bu">
"and"
</div>
<div>
How do i write dynamic ng-model for the checkboxes for the filter to take reflect?
Aucun commentaire:
Enregistrer un commentaire