填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ng.getInjector

Retrieves an Injector associated with an element, component or directive instance.

ng.getInjector(elementOrDir: {} | Element): Injector
      
      ng.getInjector(elementOrDir: {} | Element): Injector
    
参数
elementOrDir {} | Element

DOM element, component or directive instance for which to retrieve the injector.

返回值

Injector: Injector associated with the element, component or directive instance.