ng.getInjector
From Get docs
< @angular/core | globalAngular/docs/latest/api/core/global/nggetinjector
ng.getInjector
global
function
Retrieves an Injector
associated with an element, component or directive instance.
ng.getInjector(elementOrDir: {} | Element): Injector
Parameters
elementOrDir
|
Element | DOM element, component or directive instance for which to retrieve the injector. |
Returns
Injector
: Injector associated with the element, component or directive instance.
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/global/ngGetInjector