MCPcopy Create free account
hub / github.com/angular/angular / ɵɵdefineDirective

Function ɵɵdefineDirective

packages/core/src/render3/definition.ts:560–569  ·  view source on GitHub ↗
(
  directiveDefinition: DirectiveDefinition<T>,
)

Source from the content-addressed store, hash-verified

558 * @codeGenApi
559 */
560export function ɵɵdefineDirective<T>(
561 directiveDefinition: DirectiveDefinition<T>,
562): DirectiveDef<any> {
563 return noSideEffects(() => {
564 const def = getNgDirectiveDef(directiveDefinition);
565 initFeatures(def);
566
567 return def;
568 });
569}
570
571/**
572 * Create a pipe definition object.

Callers 2

givenDirectiveAttrsFunction · 0.90
DirClass · 0.90

Calls 3

noSideEffectsFunction · 0.90
getNgDirectiveDefFunction · 0.85
initFeaturesFunction · 0.85

Tested by

no test coverage detected