-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Material Navigation schematic should use the configured prefix in the generated component selector #11525
Comments
While I agree with your report, for now you should be able to to |
Yep sure, but ppl won't know that and for consistency the schematic should use the prefix configured in the angular.json. also, as of now, the component generates without any kind of prefix at all which doesn't comply to best practices wrt to custom elements |
Hmm, had a chance to look at this, but ultimately I think this is not something https://www.npmjs.com/package/@angular-devkit/schematics#future-work
Also (as can be read in the schematics documentation) the tooling is responsible for generating the What that actually means is, that the schematic can not know about the So either this whole topic should be logged with And than again, this is just what I read from the current documentation and I might be totally wrong ;-) |
I see..
Sure, that would be wrong. Great, gonna forward the link to this issue on the Angular Slack. thx meanwhile :) |
Fixed in 6.3.0 via 84634cc. |
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. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
When I generate a new component using the new Material schematic for the navigation, for example using
shell
as my name..then it should create a
ShellComponent
which uses theapp-shell
as it's selector.What is the current behavior?
The selector is
shell
, likeWhat are the steps to reproduce?
Just create a new Angular project, add material and then generate use the schematics command for generating a navigation component:
What is the use-case or motivation for changing an existing behavior?
It should follow the standard Angular CLI behavior when generating components.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: