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

Function ɵɵngDeclareInjector

packages/core/src/render3/jit/partial.ts:169–180  ·  view source on GitHub ↗
(decl: R3DeclareInjectorFacade)

Source from the content-addressed store, hash-verified

167 * @codeGenApi
168 */
169export function ɵɵngDeclareInjector(decl: R3DeclareInjectorFacade): unknown {
170 const compiler = getCompilerFacade({
171 usage: JitCompilerUsage.PartialDeclaration,
172 kind: 'NgModule',
173 type: decl.type,
174 });
175 return compiler.compileInjectorDeclaration(
176 angularCoreEnv,
177 `ng:///${decl.type.name}/ɵinj.js`,
178 decl,
179 );
180}
181
182/**
183 * Compiles a partial NgModule declaration object into a full NgModule definition object.

Callers 2

FutureModuleClass · 0.90

Calls 2

getCompilerFacadeFunction · 0.90

Tested by

no test coverage detected