I'm trying to solve an issue where a two-way data-binding exists between a query being called with a parameter and that parameter dynamically changing with an input checkbox, but the query itself is not changing.
From the view:
<input type='checkbox' ng-model='checkbox' />
From the controller:
$scope.checkbox = false
$scope.items = Item.query({someKey: $scope.checkbox});
When checkbox
is true, a small number of items are listed.
When checkbox
is false, a large number of items are listed.
The checkbox
can be toggled true and false, but it seems that it doesn't have an effect on the query.
Has someone ran into this issue before?