Filtering by Multiple Specific Model Properties in AngularJS (in OR relationship)

前端 未结 13 2548
北恋
北恋 2020-11-22 17:08

Take a look at the example here: http://docs.angularjs.org/api/ng.filter:filter

You can search by any of the phone properties by using

13条回答
  •  执念已碎
    2020-11-22 17:52

    Filter can be a JavaScript object with fields and you can have expression as:

    ng-repeat= 'item in list | filter :{property:value}'
    

提交回复
热议问题