【发布时间】:2016-07-15 11:54:10
【问题描述】:
数组 1:类别 -> Category_Name、Category_Id
数组 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 上分享这个问题吗
标签: javascript angularjs ionic-framework angularjs-filter