$sceDelegate.trustAs()

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 value in places where Angular expects a $sce.trustAs() return value.

doc_AngularJS
2016-03-29 16:10:48
Comments
Leave a Comment

Please login to continue.