SkipSelf
SkipSelf decorator
What it does
Specifies that the dependency resolution should start from the parent injector.
How to use
@Injectable() class Car { constructor(@SkipSelf() public engine:Engine) {} }
Description
For more details, see the Dependency Injection Guide.
Example
class Dependency {} @Injectable() class NeedsDependency { constructor(@SkipSelf() public dependency: Dependency) { this.dependency = dependency; } } const parent = R