I have a resource in my controller and the following ng-repeat checkboxes are filled with checkboxes that I know in the controller that should be checked.
the code will look like.
$scope.data = resource.query(); var arr_to_be_checked = [1,3,5];
in another controller i use this.
$scope.data = [ { Type: 1, checked: true, Title: 'Item A'}, { Type: 2, checked: false, Title: 'Item B'}];
and its working mode, but I need to apply this on the resource and ng-repeat, because I need more flexible
I find any soul, but without meaning. Pls can you help me?
My question is: how can I "override" objects in a resource using "checked: true" or check any box.
Thank you so much for your help or any idea.
Have a nice day
source share