MCPcopy Index your code
hub / github.com/angular/angular / ɵɵdefineDirective

Function ɵɵdefineDirective

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

Source from the content-addressed store, hash-verified

564 * @codeGenApi
565 */
566export function ɵɵdefineDirective<T>(
567 directiveDefinition: DirectiveDefinition<T>,
568): DirectiveDef<any> {
569 return noSideEffects(() => {
570 const def = getNgDirectiveDef(directiveDefinition);
571 initFeatures(def);
572
573 return def;
574 });
575}
576
577/**
578 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…