MCPcopy
hub / github.com/angular/angular / GreeterInj

Class GreeterInj

packages/core/test/render3/providers_spec.ts:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 @Injectable()
69 class GreeterInj implements Greeter {
70 public greet: string;
71 constructor(private provider: GreeterProvider) {
72 this.greet = this.provider.provide();
73 }
74
75 static ɵprov = ɵɵdefineInjectable({
76 token: GreeterInj,
77 factory: () => new GreeterInj(ɵɵinject(GreeterProvider as any)),
78 });
79 }
80
81 it('TypeProvider', () => {
82 expectProvidersScenario({

Callers

nothing calls this directly

Calls 3

InjectableInterface · 0.90
ɵɵdefineInjectableFunction · 0.90
ɵɵinjectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…