Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit e3c21c5

Browse files
AlexElinjosephperrott
authored andcommitted
docs: use TS Parameter properties in SkipSelf example (angular#40858)
PR Close angular#40858
1 parent 4ec045e commit e3c21c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/examples/core/di/ts/metadata_spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ import {ComponentFixture, TestBed} from '@angular/core/testing';
103103

104104
@Injectable()
105105
class NeedsDependency {
106-
constructor(@SkipSelf() public dependency: Dependency) {
107-
this.dependency = dependency;
108-
}
106+
constructor(@SkipSelf() public dependency: Dependency) {}
109107
}
110108

111109
const parent = Injector.create({providers: [{provide: Dependency, deps: []}]});

0 commit comments

Comments
 (0)