trait Sce extends Object
SCE Service - is a service that provides Strict Contextual Escaping services to AngularJS.
- Annotations
- @RawJSType() @native()
- See also
https://docs.angularjs.org/api/ng/provider/$sceDelegateProvider
- Alphabetic
- By Inheritance
- Sce
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getTrusted(type: String, maybeTrusted: Any): Any
Delegates to $sceDelegate.getTrusted.
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.
- 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.
-
def
getTrustedCss(value: Any): Any
Shorthand method.
Shorthand method. $sce.getTrustedCss(value) -> $sceDelegate.getTrusted($sce.CSS, value)
- value
The value to pass to $sce.getTrusted.
- returns
The return value of $sce.getTrusted($sce.CSS, value)
-
def
getTrustedHtml(value: Any): Any
Shorthand method.
Shorthand method. $sce.getTrustedHtml(value) -> $sceDelegate.getTrusted($sce.HTML, value)
- value
The value to pass to $sce.getTrusted.
- returns
The return value of $sce.getTrusted($sce.HTML, value)
-
def
getTrustedJs(value: Any): Any
Shorthand method.
Shorthand method. $sce.getTrustedJs(value) -> $sceDelegate.getTrusted($sce.JS, value)
- value
The value to pass to $sce.getTrusted.
- returns
The return value of $sce.getTrusted($sce.JS, value)
-
def
getTrustedResourceUrl(value: Any): Any
Shorthand method.
Shorthand method. $sce.getTrustedResourceUrl(value) -> $sceDelegate.getTrusted($sce.RESOURCE_URL, value)
- value
The value to pass to $sceDelegate.getTrusted.
- returns
The return value of $sce.getTrusted($sce.RESOURCE_URL, value)
-
def
getTrustedUrl(value: Any): Any
Shorthand method.
Shorthand method. $sce.getTrustedUrl(value) -> $sceDelegate.getTrusted($sce.URL, value)
- value
The value to pass to $sce.getTrusted.
- returns
The return value of $sce.getTrusted($sce.URL, value)
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
isEnabled(): Boolean
Returns a boolean indicating if SCE is enabled.
Returns a boolean indicating if SCE is enabled.
- returns
a boolean indicating if SCE is enabled.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
parseAs(type: String, expression: String): Function2[Any, Any, Any]
Converts Angular expression into a function.
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)
- expression
String expression to compile.
- returns
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 values in context.
-
def
parseAsCss(expression: String): Function2[Any, Any, Any]
Shorthand method.
Shorthand method. $sce.parseAsCss(value) → $sce.parseAs($sce.CSS, value)
- expression
String expression to compile.
- returns
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 values in context.
-
def
parseAsHtml(expression: String): Function2[Any, Any, Any]
Shorthand method.
Shorthand method. $sce.parseAsHtml(expression string) -> $sce.parseAs($sce.HTML, value)
- expression
String expression to compile.
- returns
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 values in context.
-
def
parseAsJs(expression: String): Function2[Any, Any, Any]
Shorthand method.
Shorthand method. $sce.parseAsJs(value) → $sce.parseAs($sce.JS, value)
- expression
String expression to compile.
- returns
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 values in context.
-
def
parseAsResourceUrl(expression: String): Function2[Any, Any, Any]
Shorthand method.
Shorthand method. $sce.parseAsResourceUrl(value) -> $sce.parseAs($sce.RESOURCE_URL, value)
- expression
String expression to compile.
- returns
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 values in context.
-
def
parseAsUrl(expression: String): Function2[Any, Any, Any]
Shorthand method.
Shorthand method. $sce.parseAsUrl(value) -> $sce.parseAs($sce.URL, value)
- expression
String expression to compile.
- returns
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 values in context.
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trustAs(type: String, value: Any): Any
Delegates to $sceDelegate.trustAs.
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.
- 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.
-
def
trustAsHtml(value: Any): Any
Shorthand method.
Shorthand method. $sce.trustAsHtml(value) -> $sceDelegate.trustAs($sce.HTML, value)
- value
the given value
-
def
trustAsJs(value: Any): Any
Shorthand method.
Shorthand method. $sce.trustAsJs(value) -> $sceDelegate.trustAs($sce.JS, value)
- 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.)
-
def
trustAsResourceUrl(value: Any): Any
Shorthand method.
Shorthand method. $sce.trustAsResourceUrl(value) -> $sceDelegate.trustAs($sce.RESOURCE_URL, value)
- 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.)
-
def
trustAsUrl(value: Any): Any
Shorthand method.
Shorthand method. $sce.trustAsUrl(value) -> $sceDelegate.trustAs($sce.URL, value)
- 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.)
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )