Angular filter a object by its properties

后端 未结 6 2035
感情败类
感情败类 2020-11-30 04:47

I have an object with a series of object properties that is in the following similar structure (which is the way the data is coming back from a service):

{
          


        
6条回答
  •  死守一世寂寞
    2020-11-30 05:14

    Little late to answer, but this might help :

    If you want to filter on a grandchild (or deeper) of the given object, you can continue to build out your object hierarchy. For example, if you want to filter on 'thing.properties.title', you can do the following:

    You can also filter on multiple properties of an object just by adding them to your filter object:

    The syntax of 'not equals' is just a little off, try the following:

提交回复
热议问题