MCPcopy Index your code
hub / github.com/angular/angular / constructor

Method constructor

packages/examples/core/di/ts/metadata_spec.ts:151–156  ·  view source on GitHub ↗
(@Optional() @Host() os: OtherService, @Optional() @Host() hs: HostService)

Source from the content-addressed store, hash-verified

149 logs: string[] = [];
150
151 constructor(@Optional() @Host() os: OtherService, @Optional() @Host() hs: HostService) {
152 // os is null: true
153 this.logs.push(`os is null: ${os === null}`);
154 // hs is an instance of HostService: true
155 this.logs.push(`hs is an instance of HostService: ${hs instanceof HostService}`);
156 }
157 }
158
159 @Component({

Callers

nothing calls this directly

Calls 3

OptionalInterface · 0.90
HostInterface · 0.90
pushMethod · 0.45

Tested by

no test coverage detected