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

Function ɵɵngDeclareComponent

packages/core/src/render3/jit/partial.ts:93–104  ·  view source on GitHub ↗
(decl: R3DeclareComponentFacade)

Source from the content-addressed store, hash-verified

91 * @codeGenApi
92 */
93export function ɵɵngDeclareComponent(decl: R3DeclareComponentFacade): unknown {
94 const compiler = getCompilerFacade({
95 usage: JitCompilerUsage.PartialDeclaration,
96 kind: 'component',
97 type: decl.type,
98 });
99 return compiler.compileComponentDeclaration(
100 angularCoreEnv,
101 `ng:///${decl.type.name}/ɵcmp.js`,
102 decl,
103 );
104}
105
106/**
107 * Compiles a partial pipe declaration object into a full pipe definition object.

Callers 1

Calls 2

getCompilerFacadeFunction · 0.90

Tested by

no test coverage detected