diff --git a/packages/angular/src/schematics/library/lib/add-load-children.ts b/packages/angular/src/schematics/library/lib/add-load-children.ts index ddaefe64e4214..6b1a6cb7d98f3 100644 --- a/packages/angular/src/schematics/library/lib/add-load-children.ts +++ b/packages/angular/src/schematics/library/lib/add-load-children.ts @@ -33,8 +33,8 @@ export function addLoadChildren(options: NormalizedSchema): Rule { sourceFile, `{path: '${toFileName( options.fileName - )}', loadChildren: () => import('@${npmScope}/${ - options.projectDirectory + )}', loadChildren: () => import('${ + options.importPath }').then(module => module.${options.moduleName})}` ), ]);