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

Function ɵɵngDeclareNgModule

packages/core/src/render3/jit/partial.ts:187–198  ·  view source on GitHub ↗
(decl: R3DeclareNgModuleFacade)

Source from the content-addressed store, hash-verified

185 * @codeGenApi
186 */
187export function ɵɵngDeclareNgModule(decl: R3DeclareNgModuleFacade): unknown {
188 const compiler = getCompilerFacade({
189 usage: JitCompilerUsage.PartialDeclaration,
190 kind: 'NgModule',
191 type: decl.type,
192 });
193 return compiler.compileNgModuleDeclaration(
194 angularCoreEnv,
195 `ng:///${decl.type.name}/ɵmod.js`,
196 decl,
197 );
198}
199
200/**
201 * 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