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

Function initFeatures

packages/core/src/render3/definition.ts:642–644  ·  view source on GitHub ↗
(definition: DirectiveDef<T> | ComponentDef<T>)

Source from the content-addressed store, hash-verified

640}
641
642function initFeatures<T>(definition: DirectiveDef<T> | ComponentDef<T>): void {
643 definition.features?.forEach((fn) => fn(definition));
644}
645
646export function extractDefListOrFactory<T>(
647 dependencies: TypeOrFactory<DependencyTypeList> | undefined,

Callers 2

ɵɵdefineComponentFunction · 0.85
ɵɵdefineDirectiveFunction · 0.85

Calls 2

fnFunction · 0.50
forEachMethod · 0.45

Tested by

no test coverage detected