• 개요
@angular/core

InjectOptions

인터페이스
안정화

Type of the options argument to inject.

API

    
      interface InjectOptions {}
    
    

optional

boolean | undefined

Use optional injection, and return null if the requested token is not found.

skipSelf

boolean | undefined

Start injection at the parent of the current injector.

self

boolean | undefined

Only query the current injector for the token, and don't fall back to the parent injector if it's not found.

host

boolean | undefined

Stop injection at the host component's injector. Only relevant when injecting from an element injector, and a no-op for environment injectors.

상세 내용으로 이동