InjectFlags
enum
Injection flags for DI.
enum InjectFlags { Default: 0b0000 Host: 0b0001 Self: 0b0010 SkipSelf: 0b0100 Optional: 0b1000 }
Members
Member | Description |
---|---|
Default: 0b0000 | |
Host: 0b0001 | 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: 0b0010 | Don't descend into ancestors of the node requesting injection. |
SkipSelf: 0b0100 | Skip the node that is requesting injection. |
Optional: 0b1000 | Inject |
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/core/InjectFlags