• Overview
@angular/core

InjectFlags

enum
Deprecated

Injection flags for DI.

  
    enum InjectFlags {}
  
  

Default

Check self and check parent injector if needed

Host

Specifies that an injector should retrieve a dependency from any injector until reaching the host element of the current component. (Only used with Element Injector)

Self

Don't ascend to ancestors of the node requesting injection.

SkipSelf

Skip the node that is requesting injection.

Optional

Inject defaultValue instead if token not found.

Jump to details