I have an array of products that I\'m repeating over using ng-repeat and am using
<
Best way to do this is to use a function:
html
javascript $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) 查看其它12个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
javascript
$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.