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

前端 未结 13 2609
北恋
北恋 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:48

    If you're open to use third party libraries,'Angular Filters' with a nice collection of filters may be useful:

    https://github.com/a8m/angular-filter#filterby

    collection | filterBy: [prop, nested.prop, etc..]: search
    

提交回复
热议问题