trustAs(type, value);
Returns an object that is trusted by angular for use in specified strict contextual escaping contexts (such as ng-bind-html, ng-include, any src attribute interpolation, any dom event binding attribute interpolation such as for onclick, etc.) that uses the provided value. See $sce for enabling strict contextual escaping.
Parameters
Param | Type | Details |
---|---|---|
type | string | The kind of context in which this value is safe for use. e.g. url, resourceUrl, html, js and css. |
value | * | The value that that should be considered trusted/safe. |
Returns
* |
A value that can be used to stand in for the provided |
Please login to continue.