$sce.trustAsUrl()

trustAsUrl(value); Shorthand method. $sce.trustAsUrl(value) â $sceDelegate.trustAs($sce.URL, value) Parameters Param Type Details value * The value to trustAs. Returns * An object that can be passed to $sce.getTrustedUrl(value) to obtain the original value. (privileged directives only accept expressions that are either literal constants or are the return value of $sce.trustAs.)

$sce.trustAsResourceUrl()

trustAsResourceUrl(value); Shorthand method. $sce.trustAsResourceUrl(value) â $sceDelegate.trustAs($sce.RESOURCE_URL, value) Parameters Param Type Details value * The value to trustAs. Returns * An object that can be passed to $sce.getTrustedResourceUrl(value) to obtain the original value. (privileged directives only accept expressions that are either literal constants or are the return value of $sce.trustAs.)

$sce.trustAsHtml()

trustAsHtml(value); Shorthand method. $sce.trustAsHtml(value) â $sceDelegate.trustAs($sce.HTML, value) Parameters Param Type Details value * The value to trustAs. Returns * An object that can be passed to $sce.getTrustedHtml(value) to obtain the original value. (privileged directives only accept expressions that are either literal constants or are the return value of $sce.trustAs.)

$sce.trustAs()

trustAs(type, value); Delegates to $sceDelegate.trustAs. As such, 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.

$sce.trustAsJs()

trustAsJs(value); Shorthand method. $sce.trustAsJs(value) â $sceDelegate.trustAs($sce.JS, value) Parameters Param Type Details value * The value to trustAs. Returns * An object that can be passed to $sce.getTrustedJs(value) to obtain the original value. (privileged directives only accept expressions that are either literal constants or are the return value of $sce.trustAs.)

$sce.parseAsUrl()

parseAsUrl(expression); Shorthand method. $sce.parseAsUrl(value) â $sce.parseAs($sce.URL, value) Parameters Param Type Details expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {object} â an object against which any expressions embedded in the strings are evaluated against (typically a scope object). locals â {object=} â local variables context object, useful for overriding

$sce.parseAsJs()

parseAsJs(expression); Shorthand method. $sce.parseAsJs(value) â $sce.parseAs($sce.JS, value) Parameters Param Type Details expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {object} â an object against which any expressions embedded in the strings are evaluated against (typically a scope object). locals â {object=} â local variables context object, useful for overriding va

$sce.parseAsHtml()

parseAsHtml(expression); Shorthand method. $sce.parseAsHtml(expression string) â $sce.parseAs($sce.HTML, value) Parameters Param Type Details expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {object} â an object against which any expressions embedded in the strings are evaluated against (typically a scope object). locals â {object=} â local variables context object, useful

$sce.parseAsResourceUrl()

parseAsResourceUrl(expression); Shorthand method. $sce.parseAsResourceUrl(value) â $sce.parseAs($sce.RESOURCE_URL, value) Parameters Param Type Details expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {object} â an object against which any expressions embedded in the strings are evaluated against (typically a scope object). locals â {object=} â local variables context obje

$sce.parseAsCss()

parseAsCss(expression); Shorthand method. $sce.parseAsCss(value) â $sce.parseAs($sce.CSS, value) Parameters Param Type Details expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {object} â an object against which any expressions embedded in the strings are evaluated against (typically a scope object). locals â {object=} â local variables context object, useful for overriding