$sce.parseAs()

parseAs(type, expression); Converts Angular expression into a function. This is like $parse and is identical when the expression is a literal constant. Otherwise, it wraps the expression in a call to $sce.getTrusted(type, result) Parameters Param Type Details type string The kind of SCE context in which this result will be used. expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {o

$sce.isEnabled()

isEnabled(); Returns a boolean indicating if SCE is enabled. Returns Boolean true if SCE is enabled, false otherwise. If you want to set the value, you have to do it at module config time on $sceProvider.

$sce.getTrustedUrl()

getTrustedUrl(value); Shorthand method. $sce.getTrustedUrl(value) â $sceDelegate.getTrusted($sce.URL, value) Parameters Param Type Details value * The value to pass to $sce.getTrusted. Returns * The return value of $sce.getTrusted($sce.URL, value)

$sce.getTrustedResourceUrl()

getTrustedResourceUrl(value); Shorthand method. $sce.getTrustedResourceUrl(value) â $sceDelegate.getTrusted($sce.RESOURCE_URL, value) Parameters Param Type Details value * The value to pass to $sceDelegate.getTrusted. Returns * The return value of $sce.getTrusted($sce.RESOURCE_URL, value)

$sce.getTrustedJs()

getTrustedJs(value); Shorthand method. $sce.getTrustedJs(value) â $sceDelegate.getTrusted($sce.JS, value) Parameters Param Type Details value * The value to pass to $sce.getTrusted. Returns * The return value of $sce.getTrusted($sce.JS, value)

$sce.getTrustedHtml()

getTrustedHtml(value); Shorthand method. $sce.getTrustedHtml(value) â $sceDelegate.getTrusted($sce.HTML, value) Parameters Param Type Details value * The value to pass to $sce.getTrusted. Returns * The return value of $sce.getTrusted($sce.HTML, value)

$sce.getTrustedCss()

getTrustedCss(value); Shorthand method. $sce.getTrustedCss(value) â $sceDelegate.getTrusted($sce.CSS, value) Parameters Param Type Details value * The value to pass to $sce.getTrusted. Returns * The return value of $sce.getTrusted($sce.CSS, value)

$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 provide

$rootScopeProvider.digestTtl()

digestTtl(limit); Sets the number of $digest iterations the scope should attempt to execute before giving up and assuming that the model is unstable. The current default is 10 iterations. In complex applications it's possible that the dependencies between $watchs will result in several digest iterations. However if an application needs more than the default 10 digest iterations for its model to stabilize then you should investigate what is causing the model to continuously change during the di

$rootScopeProvider

$rootScope provider in module ng Provider for the $rootScope service. Methods digestTtl(limit); Sets the number of $digest iterations the scope should attempt to execute before giving up and assuming that the model is unstable. The current default is 10 iterations. In complex applications it's possible that the dependencies between $watchs will result in several digest iterations. However if an application needs more than the default 10 digest iterations for its model to stabilize th