Here I have a JSON array
demoList = [
{ name:"asian003", model:"hyper20", class:"selina0127" },
{ name:"asian003", model:"hyper21", class:"selina0127" },
{ name:"norva", model:"hyper21", class:"gowri.14" },
{ name:"sparks007", model:"NNc22", class:"gowri.14" },
{ name:"asian003", model:"NNc22", class:"selina0127" }
]
This array showing in an HTML table using Angular. I want to add dropdowns separately such as name dropdown, model dropdown, class dropdown. When I select drop-down values I want to filter table records.
For example, if I select asian003 from name and selina0127 from class and do not select the value model dropdown, I want to get the below result into the table preview
demo1List = [
{name:"asian003",model:"hyper20",class:"selina0127"},
{name:"asian003",model:"hyper21",class:"selina0127"},
{name:"asian003",model:"NNc22",class:"selina0127"}
]
asian003from name andselina0127from class and do not select the value model dropdown, I want to get the below result into the table preview