We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24c7308 commit 4862680Copy full SHA for 4862680
packages/angular-cli/blueprints/component/index.js
@@ -124,8 +124,8 @@ module.exports = {
124
const returns = [];
125
const className = stringUtils.classify(`${options.entity.name}Component`);
126
const fileName = stringUtils.dasherize(`${options.entity.name}.component`);
127
- const componentDir = path.relative(path.dirname(this.pathToModule), this.generatePath);
128
- const importPath = componentDir ? `./${componentDir}/${fileName}` : `./${fileName}`.toLowerCase();
+ const componentDir = path.relative(path.dirname(this.pathToModule), this.generatePath).toLowerCase();
+ const importPath = componentDir ? `./${componentDir}/${fileName}` : `./${fileName}`;
129
130
if (!options['skip-import']) {
131
returns.push(
0 commit comments