Interface InjectorService<TCustomServices>


@JsType(isNative=true, name="ng.InjectorService", namespace="<global>") public interface InjectorService<TCustomServices>
Public AngularTS InjectorService contract exposed through the global ng namespace for Closure-annotated applications.
  • Method Summary

    Modifier and Type
    Method
    Description
    <TKey> Object
    get(TKey serviceName)
    Get a service by name.
    boolean
    has(String name)
    Public InjectorService.has member exposed by the AngularTS namespace contract.
    <TInstance>
    TInstance
    instantiate(Object type, Object locals, String serviceName)
    Instantiate a type constructor with optional locals.
    <TResult> TResult
    invoke(Object fn, Object self, Object locals, String serviceName)
    Invoke a function with optional context and locals.
    void
    loadNewModules(elemental2.core.JsArray<Object> mods)
    Public InjectorService.loadNewModules member exposed by the AngularTS namespace contract.
  • Method Details

    • get

      <TKey> Object get(TKey serviceName)
      Get a service by name.
      Parameters:
      serviceName - Value supplied for the serviceName parameter.
      Returns:
      Method result.
    • has

      boolean has(String name)
      Public InjectorService.has member exposed by the AngularTS namespace contract.
      Parameters:
      name - Value supplied for the name parameter.
      Returns:
      Method result.
    • instantiate

      <TInstance> TInstance instantiate(Object type, Object locals, String serviceName)
      Instantiate a type constructor with optional locals.
      Parameters:
      type - Value supplied for the type parameter.
      locals - Value supplied for the locals parameter.
      serviceName - Value supplied for the serviceName parameter.
      Returns:
      Method result.
    • invoke

      <TResult> TResult invoke(Object fn, Object self, Object locals, String serviceName)
      Invoke a function with optional context and locals.
      Parameters:
      fn - Value supplied for the fn parameter.
      self - Value supplied for the self parameter.
      locals - Value supplied for the locals parameter.
      serviceName - Value supplied for the serviceName parameter.
      Returns:
      Method result.
    • loadNewModules

      void loadNewModules(elemental2.core.JsArray<Object> mods)
      Public InjectorService.loadNewModules member exposed by the AngularTS namespace contract.
      Parameters:
      mods - Value supplied for the mods parameter.