From 60bd237f5931f46a6363909b4f3a10c4a6eef441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Will=20=E4=BF=9D=E5=93=A5?= Date: Thu, 22 Jun 2017 17:25:10 +0800 Subject: [PATCH] fix(@angular/cli): import wrong module while generating submodule with --routing (#6533) --- packages/@angular/cli/blueprints/module/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/@angular/cli/blueprints/module/index.ts b/packages/@angular/cli/blueprints/module/index.ts index 9b5d2d46cbd6..d43ee275145a 100644 --- a/packages/@angular/cli/blueprints/module/index.ts +++ b/packages/@angular/cli/blueprints/module/index.ts @@ -124,10 +124,6 @@ export default Blueprint.extend({ } else { let className = stringUtils.classify(`${options.entity.name}Module`); let fileName = stringUtils.dasherize(`${options.entity.name}.module`); - if (options.routing) { - className = stringUtils.classify(`${options.entity.name}RoutingModule`); - fileName = stringUtils.dasherize(`${options.entity.name}-routing.module`); - } const fullGeneratePath = path.join(this.project.root, this.generatePath); const moduleDir = path.parse(this.pathToModule).dir; const relativeDir = path.relative(moduleDir, fullGeneratePath);