getInjector
function
Retrieves an Injector
associated with an element, component or directive instance.
API
function getInjector( elementOrDir: {} | Element): Injector;
getInjector
Injector
Retrieves an Injector
associated with an element, component or directive instance.
@paramelementOrDir
{} | Element
DOM element, component or directive instance for which to retrieve the injector.
@returns
Injector
Jump to details