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

Function isDirective

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

Source from the content-addressed store, hash-verified

30}
31
32export function isDirective(doc: ClassExportDoc): boolean {
33 return hasClassDecorator(doc, 'Directive');
34}
35
36export function isComponent(doc: ClassExportDoc): boolean {
37 return hasClassDecorator(doc, 'Component');

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…