I had a Json data I need to create a nested filter search in angular. If you guys can help me since I am new to this I tried but I find difficulty.
Join the Stack Overflow Community
Stack Overflow is a community of 6.4 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
Join them; it only takes a minute:
|
I dont have your css but at high level it should be like THIS and for multilevel filter refer THIS On click of checkbox i am adding filter category to one of my array using addToFilter function. HTML
HTML code filter:categoryFilter will filter records from array according to selected category.
JS This js code is to add selected category from array when checked and remove when unchecked.
** Please ignore my grouping code. I just want to simulate what you shown in image. Updated SAMPLE with CSS |
|||||||||
|