I have a problem (possibly a simple one) ..
I have an array with "product" objects
, $scope.products
.. these products are listed as checkboxes
.
Now I have a new array with the "product" objects which are selected "chosen ones", the array is loaded with a async promise
..
Now I need a way to check only the checkboxes
with the chosen products..
How to do that .. ;)
$scope.products // array with product objects
$scope.chosenproducts // array with chosen product objects - async
// template
<label ng-repeat="product in products">
<input type="checkbox" ng-model="chosenproducts" ng-true-value="{{product}}"
ng-false-value="{}"
ng-disabled="case.shared">
{{product.name}}
</label>
this is my badly try .. won't work ..