Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components / Directives & Filters aren't camelized when registered #6

Closed
ValentinGot opened this issue Mar 15, 2017 · 0 comments
Closed
Assignees
Labels

Comments

@ValentinGot
Copy link
Contributor

When generating a new component, directive or filter, the registered name isn't camelized.

clea generate component my-new-component
# or
clea generate directive my-new-directive
# or
clea generate filter my-new-filter

The output (app.module.ts):

module.component('my-new-component', MyNewComponentComponent);
module.directive('my-new-directive', MyNewDirectiveDirective);
module.filter('my-new-filter', MyNewFilterFilter);

It should be:

module.component('myNewComponent', MyNewComponentComponent);
module.directive('myNewDirective', MyNewDirectiveDirective);
module.filter('myNewFilter', MyNewFilterFilter);
@ValentinGot ValentinGot self-assigned this Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant