inject top-level constant
Inject
const inject
Annotation for a method (in an Component), class, or constructor that provides an instance.
- If the annotation is on a class or constructor, the class is entered into the dependency graph and its constructor's arguments are injected when the class is injected.
- If the annotation is on an Component, this indicates that the component should provide instances of the type when the method is called.
The type provided by this annotation can be further specified by including a Qualifier annotation.
Implementation
const inject = Inject._();