How To
Documentation
    Learn More

      fact

      Description

      Returns the first fact of the provided fact name from the response. If no fact is found it will return null.

      Usage

      In HTML Template Binding

      {{ fact_expression | fact:fact-name }}

      In JavaScript

      $filter('fact')(response, fact-name)

      Parameters

      ParamTypeDetails
      responseobject

      The response object to get the fact from

      fact-namestring

      The fact name

      Example

      Source