MCPcopy Create free account
hub / github.com/angular/angular / Service

Class Service

packages/core/test/acceptance/di_spec.ts:4194–4200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4192 const TOKEN = new InjectionToken<string>('TOKEN');
4193
4194 @Injectable()
4195 class Service {
4196 value: string;
4197 constructor() {
4198 this.value = inject(TOKEN);
4199 }
4200 }
4201
4202 @Component({
4203 selector: 'test-cmp',

Callers 2

MyServiceClass · 0.90
AlternateServiceClass · 0.90

Calls 2

InjectableInterface · 0.90
injectFunction · 0.90

Tested by

no test coverage detected