I have an array which I print out it's elements based on which category is selected
<li class="thumbnail" ng-repeat="temp in templates| filter:{temp.category_id : selectedCategoryId }:true">
templates looks like this :
[{"id":"1","account_id":null,"category_id":"1","name":"Blue","thumbnail":"placehold.it/210x300","category_name":"test"},{"id":"2","account_id":null,"category_id":"1","name":"Red","thumbnail":"placehold.it/210x300","category_name":"test"},{"id":"3","account_id":null,"category_id":"2","name":"Green","thumbnail":"placehold.it/210x300","category_name":"test again"}]
Thanks for the help !
EDIT : I also wanted to add an extra condition , that is temp.category_id == null , show all.