-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(command/generate): directive selector should be camelcase #424
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
Comments
This will be included with the style-guide alignment PR I'm working on, so keep an eye out for that. When running Furthermore if I run //CC @IgorMinar @johnpapa |
good question ... not sure. |
I agree with all of @PascalPrecht 's points too. |
For the initial I will implement it as what you provide as the argument will be the selector used in the directive this way the dev can explicitly decide on what the name will be. |
@Brocco tbh I haven't thought of simply doing |
@PascalPrecht correct, but the current version will output the dasherized name see here |
Oh then I misunderstood this. Thought this was already the case. Then I'm looking forward to this! :) |
If you want you can play with the branch I'm working on should have the full PR ready in the next few days https://github.com/Brocco/angular-cli/tree/style-guide |
This issue has been addressed via PR #427 selectors for directives will not adjust the name entered via the CLI (i.e. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Generating a directive using:
Generates a directive that looks like this:
There are a two things that need a fix IMO:
my-directive
I should getmyDirective
providers
andhost
are not necessarily needed maybe we can simply remove those?The text was updated successfully, but these errors were encountered: