MCPcopy
hub / github.com/angular/components / isService

Function isService

tools/dgeni/common/decorators.ts:40–42  ·  view source on GitHub ↗
(doc: ClassExportDoc)

Source from the content-addressed store, hash-verified

38}
39
40export function isService(doc: ClassExportDoc): boolean {
41 return hasClassDecorator(doc, 'Injectable') || hasClassDecorator(doc, 'Service');
42}
43
44export function isNgModule(doc: ClassExportDoc): boolean {
45 return hasClassDecorator(doc, 'NgModule');

Callers 1

_decorateClassDocMethod · 0.90

Calls 1

hasClassDecoratorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…