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

Method constructor

packages/core/test/test_bed_spec.ts:98–103  ·  view source on GitHub ↗
(
    @Inject(NAME) @Optional() name: string,
    @Inject(SimpleService) @Optional() service: SimpleService,
  )

Source from the content-addressed store, hash-verified

96 name: string;
97
98 constructor(
99 @Inject(NAME) @Optional() name: string,
100 @Inject(SimpleService) @Optional() service: SimpleService,
101 ) {
102 this.name = name || 'nobody!';
103 }
104}
105
106@Component({

Callers

nothing calls this directly

Calls 2

InjectInterface · 0.90
OptionalInterface · 0.90

Tested by

no test coverage detected