MCPcopy Index your code
hub / github.com/angular/components / isComponent

Function isComponent

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

Source from the content-addressed store, hash-verified

34}
35
36export function isComponent(doc: ClassExportDoc): boolean {
37 return hasClassDecorator(doc, 'Component');
38}
39
40export function isService(doc: ClassExportDoc): boolean {
41 return hasClassDecorator(doc, 'Injectable') || hasClassDecorator(doc, 'Service');

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…