diff --git a/schematics/page/index.ts b/schematics/page/index.ts index ca3d4a7..31678e8 100644 --- a/schematics/page/index.ts +++ b/schematics/page/index.ts @@ -103,7 +103,7 @@ function addRouteToNgModule(options: PageOptions): Rule { const relativePath = buildRelativePath(module, pagePath); - const routePath = options.routePath ? options.routePath : options.name; + const routePath = strings.dasherize(options.routePath ? options.routePath : options.name); const routeLoadChildren = `${relativePath}#${strings.classify(options.name)}PageModule`; const changes = addRouteToRoutesArray(source, module, routePath, routeLoadChildren); const recorder = host.beginUpdate(module); diff --git a/schematics/page/schema.json b/schematics/page/schema.json index 09e2baa..16ed78b 100644 --- a/schematics/page/schema.json +++ b/schematics/page/schema.json @@ -66,9 +66,8 @@ }, "routePath": { "type": "string", - "description": "path the route should be", + "description": "The path to use for the route of the page", "default": "" - } }, "required": []