Just starting to learn angularjs.
Below is the code I've written:
$scope.styles = [{"name":"walking"},{"name":"Food"},{"name":"culture"}]
I have created a checkbox list
<div ng-repeat="style in styles">
<input type="checkbox"> {{style}}
</div>
Currently, I am retrieving Tours packages with style values such as: walking ,food
$scope.tours = [{"Tourname":"sky walk","style:walking "},{"Tourname":"Accra markets","style":"food,walking"}]
The goal here is that when a style in the checkbox is clicked, only the tours with that specific style should be displayed.
Would appreciate any help or sample references!