How To
Documentation
    Learn More

      property

      Description

      Get value from an array based on the value of a property.

      Usage

      In HTML Template Binding

      {{ property_expression | property:value:returnProperty }}

      In JavaScript

      $filter('property')(property, value, returnProperty)

      Parameters

      ParamTypeDetails
      propertystring

      The name of the property to filter on.

      valuestring

      The value of the property to filter on.

      returnPropertystring

      The property to return.

      Example

      Source

      
      
      
      
      
      

      Demo