I'm fairly new to AngularJS and I've been looking to setup a filter function that basically filters a list of upcoming events for the company that I work for. I was wondering if there is a way to filter the data based on multiple checkboxes.
I basically need to set it up to have 3 checkboxes:
- Headline Event
- Comedy Event
- Free Event
If Comedy Event is selected display comedy events. If Headline event is selected display Headline event. If Free event is selected display free events. Or if Headline and Comedy are selected show both.
I just have not been able to get anything working properly.
In the JSON file the event types are organized like so:
"entertainment_type_is_headline": "0",
"entertainment_type_is_free": "1",
"entertainment_type_is_comedy": "0",
Here is the link to the data file: https://www.codepile.net/pile/RlrmdDZX
I'm assuming it goes like so... if the event has entertainment_type_is_headline = "1" display all events where entertainment_type_is_headline is = "1" ... but I just can't wrap my head around it...
I've seen very small simple examples and large overly-complex examples but nothing seems to work for me.