Managing multiple checkboxes to filter a dataset can be tricky. I am looking for a way to debounce the checkbox selection so that the filter is only triggered after a certain period of time, like waiting 500ms to a second after the last checkbox has been clicked.
To see an example, check out my plnkr
<input type="checkbox"
ng-model="user.cool"
ng-model-options="{ debounce: 1000 }"/>
<input type="checkbox"
ng-model="user.lame"
ng-model-options="{ debounce: 1000 }"/>
The current setup queues the click options and changes the model one by one with a delay, but I want both checkboxes to change at the same time. How can I achieve this?
Thank you!