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

Class MyService

packages/core/test/acceptance/service_spec.ts:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12describe('@Service decorator', () => {
13 it('should be able to declare a class as an @Service', () => {
14 @Service()
15 class MyService {
16 readonly value = 'MyService';
17 }
18
19 @Component({template: ''})
20 class MyComp {

Callers

nothing calls this directly

Calls 2

ServiceClass · 0.90
injectFunction · 0.90

Tested by

no test coverage detected