MCPcopy Create free account
hub / github.com/angular/components / addModuleImportToRootModule

Function addModuleImportToRootModule

src/cdk/schematics/utils/ast.ts:29–37  ·  view source on GitHub ↗
(
  host: Tree,
  moduleName: string,
  src: string,
  project: ProjectDefinition,
)

Source from the content-addressed store, hash-verified

27
28/** Import and add module to root app module. */
29export function addModuleImportToRootModule(
30 host: Tree,
31 moduleName: string,
32 src: string,
33 project: ProjectDefinition,
34) {
35 const modulePath = getAppModulePath(host, getProjectMainFile(project));
36 addModuleImportToModule(host, modulePath, moduleName, src);
37}
38
39/**
40 * Import and add module to specific module path.

Callers

nothing calls this directly

Calls 2

getProjectMainFileFunction · 0.90
addModuleImportToModuleFunction · 0.85

Tested by

no test coverage detected