Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
describe(
'@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
Service
Class · 0.90
inject
Function · 0.90
Tested by
no test coverage detected