• 개요
@angular/core/globals

getInjector

함수
안정화

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

API

function getInjector(elementOrDir: {} | Element): Injector;
@paramelementOrDir{} | Element

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

@returnsInjector

Injector associated with the element, component or directive instance.

상세 내용으로 이동