$sce.getTrusted()

getTrusted(type, maybeTrusted);

Delegates to $sceDelegate.getTrusted. As such, takes the result of a $sce.trustAs() call and returns the originally supplied value if the queried context type is a supertype of the created type. If this condition isn't satisfied, throws an exception.

Parameters

Param Type Details
type string

The kind of context in which this value is to be used.

maybeTrusted *

The result of a prior $sce.trustAs call.

Returns

*

The value the was originally provided to $sce.trustAs if valid in this context. Otherwise, throws an exception.

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

Please login to continue.