Is there a way to filter by property, something like this:
<tr ng-repeat="person in people| filter: {age>20}" >
that without a custom filter function?
Is there a way to filter by property, something like this:
<tr ng-repeat="person in people| filter: {age>20}" >
that without a custom filter function?
You can use ng-if
directive for this
ng-repeat="person in people" ng-if="person.age > 20"
If for some reason you don't want to use custom filter
, you can apply ng-show
, somthing like:
<td ng-show ="person.age > 20">{{person}}</td>
Regarding your question - you can't.