• Overview
@angular/core/globals

getInjector

function
stable

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

API

function getInjector(elementOrDir: {} | Element): Injector;
Jump to details