angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

[Enhancement] Improve code modification when generating new routes

Open thorstenschaefer opened this issue 10 years ago • 3 comments

When we generate a new route, it gets automatically added to the main component, which is great. The import statement of our new component is getting placed directly after the first block of import statements. According to the official style guide, we should first import all the angular dependencies, and then in a second block, separated by an empty line, our own application dependencies (see Style 03-06 in https://angular.io/docs/ts/latest/guide/style-guide.html#!#coding-conventions).

thorstenschaefer avatar May 12 '16 20:05 thorstenschaefer

Is this a duplicate of #579?

phillipgreenii avatar May 13 '16 00:05 phillipgreenii

@phillipgreenii Yes, sorry, didn't see the existing issue.

thorstenschaefer avatar May 13 '16 01:05 thorstenschaefer

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.