陣列1:分類 - > CATEGORY_NAME,CATEGORY_ID基於選擇列表上應用過濾器 - 角JS
陣列2:物品 - > ITEM_NAME ...等,Category_Belonging_Id
我需要過濾根據顯示的項目選定的類別。
<div class="list>
<select>
<option ng-repeat="category in categories" ng-model="category_type">
{{category.Category_Name}}
</option>
</select>
<a ng-repeat="item in items | filter: // What should I put here?" href="#">
...
</a>
</div>
你可以jfiddle – vineet