Looking for the old docs site? You can still view it for a limited time here.

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

Param Type Details
response object

The response object to get the fact from

fact-name string

The fact name

Example

Source