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

When generating a class with 'component' in the name (e.g. component base class), anything after the 'component' is ignored

Open williamBurgeson opened this issue 9 years ago • 5 comments

ng generate class xxx.component.base produces a file called 'xxx.component', which clearly wasn't the intention.

williamBurgeson avatar Apr 25 '17 10:04 williamBurgeson

@Brocco can you clarify if this is intentional or a bug?

filipesilva avatar May 05 '17 17:05 filipesilva

Might be good to add an extra param to the generator command, not only for components but for services, classes an any other createable artefact, e.g. so you can specify the filename and the class name separately.

williamBurgeson avatar May 05 '17 18:05 williamBurgeson

@Brocco ping ☝️

#goodnessSquad

shairez avatar Aug 07 '17 17:08 shairez

I'm sorry, but we can't reproduce the problem following the instructions you provided. Remember that we have a large number of issues to resolve, and have only a limited amount of time to reproduce your issue. Short, explicit instructions make it much more likely we'll be able to reproduce the problem so we can fix it.

If the problem persists, please open a new issue following our submission guidelines.

A good way to make a minimal repro is to create a new app via ng new repro-app and add the minimum possible code to show the problem. Then you can push this repository to github and link it here.

alan-agius4 avatar Mar 14 '19 10:03 alan-agius4

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.