repeat values based on another input ng-model value in angularjs?
I have one input value like
Social Psychologyfor this valueng-model is kpcategoryI have used ng-repeat like
ng-repeat="question in questionsto list out the allcategoryandname.- I tried to filter
Social Psychologycategory inng-repeatlist, so i used likeng-repeat="question in questions | filter:kpcategory". - what the issue is, it's filtering
Social Psychologydata's perfectly. but i would like to filter only the category value ofSocial Psychologynot for all data's. the issue is it's filtered includes ofcategory and category_twodata's.
Expecting result is:-
just want to filter by
catgorySocial Psychologyso result should beSocial Psychology , Johndata.we don't how to solve this issue please help us thanks.