A fellow developer asked me how filter Pipes could be used for filtering based on checkboxes. Using the existing code samples I’ve created, I endeavored to put together a little demo of how this can be achieved.
Angular’s custom Pipes can, really, achieved nearly any filtering you’d want. The idea of filtering with checkboxes means that you have discreate values associated with the checkboxes, when checked, and you want to compare those checked values against properties with an array of objects. Sounds straight-forward, right?
The first hurdle is handling checkboxes in Angular. I decided to use an ngFor, and various bindings, for this purpose to display a list of checkboxes.
... read the whole story at long2know.com.