Trait

io.scalajs.npm.angularjs

Injector

Related Doc: package angularjs

Permalink

trait Injector extends Object

Injector Service - is used to retrieve object instances as defined by provider, instantiate types, invoke methods, and load modules.

Annotations
@RawJSType() @native()
See also

https://docs.angularjs.org/api/auto/service/$injector

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Injector
  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. def annotate(fn: Function, strictDi: Boolean = js.native): Array[String]

    Permalink

    Returns an array of service names which the function is requesting for injection.

    Returns an array of service names which the function is requesting for injection. This API is used by the injector to determine which services need to be injected into the function when the function is invoked. There are three ways in which the function can be annotated with the needed dependencies.

    fn

    Function for which dependent service names need to be retrieved as described above.

    strictDi

    Disallow argument name annotation inference (default: false).

  5. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def get[T](name: String, caller: String = js.native): UndefOr[T]

    Permalink

    Return an instance of the service.

    Return an instance of the service.

    T

    the wrapped object type

    name

    The name of the instance to retrieve.

    caller

    An optional string to provide the origin of the function call for error messages.

    returns

    The instance.

  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def has(name: String): Boolean

    Permalink

    Allows the user to query if the particular service exists.

    Allows the user to query if the particular service exists.

    name

    Name of the service to query.

    returns

    true if injector has given service.

  13. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def instantiate[T <: Object](type: Function, locals: Object = js.native): T

    Permalink

    Create a new instance of JS type.

    Create a new instance of JS type. The method takes a constructor function, invokes the new operator, and supplies all of the arguments to the constructor function as specified by the constructor annotation.

    locals

    Optional object. If preset then any argument names are read from this object first, before the $injector is consulted.

    returns

    new instance of Type.

  16. def invoke(fn: Function, self: Object = js.native, locals: Object = js.native): Any

    Permalink

    Invoke the method and supply the method arguments from the $injector.

    Invoke the method and supply the method arguments from the $injector.

    fn

    The injectable function to invoke. Function parameters are injected according to the $inject Annotation rules.

    self

    The this for the invoked method.

    locals

    Optional object. If preset then any argument names are read from this object first, before the $injector is consulted.

    returns

    the value returned by the invoked fn function.

  17. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def valueOf(): Any

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. 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