Is it possible to filter an array of objects, such that the value of property can be either of a few values (OR condition) without writing a custom filter>
Best way to do this is to use a function:
$scope.myFilter = function (item) { return item === 'red' || item === 'blue'; }; Alternatively, you can use ngHide or ngShow to dynamically show and hide elements based on a certain criteria. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Alternatively, you can use ngHide or ngShow to dynamically show and hide elements based on a certain criteria.