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

Class Service

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

Source from the content-addressed store, hash-verified

3749 const TOKEN = new InjectionToken<string>('TOKEN');
3750
3751 @Injectable()
3752 class Service {
3753 value: string;
3754 constructor() {
3755 this.value = inject(TOKEN);
3756 }
3757 }
3758
3759 @Component({
3760 template: '{{service.value}}',

Callers 2

MyServiceClass · 0.90
AlternateServiceClass · 0.90

Calls 2

InjectableInterface · 0.90
injectFunction · 0.90

Tested by

no test coverage detected