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

trusted

Description

Returns a trusted url. This is required if trying to use an angular expression in the media idea src attribute.

Usage

In HTML Template Binding

{{ trusted_expression | trusted }}

In JavaScript

$filter('trusted')(url)

Parameters

Param Type Details
url string

The url to return.