<div class="checkbox">
<input type="checkbox" ng-model="_computeAllowUser(album.productKey,
productList.keyId)"
ng-change=addProductInAlbum($event, product.keId)">
</div>
*Controller Code:-*
$scope._computeAllowUser = function(albumKey, productKeyId) {
return(albumKey == productKeyId) ? true: false;
}
Here,_computeAllowUser function is called after loading but i got error
non-assignabel error in the ng-model ,so how to resolve this error and how
to call function with ng-model.
With the help of this function if the keyId will be return true, i have to
select all the checkbox willl be checked.how to implement this?
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.