Trait/Object

io.scalajs.npm.angularjs.sanitize

Sce

Related Docs: object Sce | package sanitize

Permalink

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

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sce
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getTrusted(type: String, maybeTrusted: Any): Any

    Permalink

    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.

  11. def getTrustedCss(value: Any): Any

    Permalink

    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)

  12. def getTrustedHtml(value: Any): Any

    Permalink

    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)

  13. def getTrustedJs(value: Any): Any

    Permalink

    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)

  14. def getTrustedResourceUrl(value: Any): Any

    Permalink

    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)

  15. def getTrustedUrl(value: Any): Any

    Permalink

    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)

  16. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def isEnabled(): Boolean

    Permalink

    Returns a boolean indicating if SCE is enabled.

    Returns a boolean indicating if SCE is enabled.

    returns

    a boolean indicating if SCE is enabled.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def parseAs(type: String, expression: String): Function2[Any, Any, Any]

    Permalink

    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.
  25. def parseAsCss(expression: String): Function2[Any, Any, Any]

    Permalink

    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.
  26. def parseAsHtml(expression: String): Function2[Any, Any, Any]

    Permalink

    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.
  27. def parseAsJs(expression: String): Function2[Any, Any, Any]

    Permalink

    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.
  28. def parseAsResourceUrl(expression: String): Function2[Any, Any, Any]

    Permalink

    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.
  29. def parseAsUrl(expression: String): Function2[Any, Any, Any]

    Permalink

    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.
  30. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. def trustAs(type: String, value: Any): Any

    Permalink

    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.

  35. def trustAsHtml(value: Any): Any

    Permalink

    Shorthand method.

    Shorthand method. $sce.trustAsHtml(value) -> $sceDelegate.trustAs($sce.HTML, value)

    value

    the given value

  36. def trustAsJs(value: Any): Any

    Permalink

    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.)

  37. def trustAsResourceUrl(value: Any): Any

    Permalink

    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.)

  38. def trustAsUrl(value: Any): Any

    Permalink

    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.)

  39. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped