-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Use module name as component selector prefix #5795
Comments
This is part of a larger-ish discussion regarding supporting several prefixes, and how to auto-determine them. I don't think there's a good way of auto-detecting though. The best way to do this atm is to use the |
Atleast it should become |
I think there are two components to this issue:
For (1), this is already possible with the
For (2) this is difficult to implement right for every user, with little benefit. Since it's relatively low effort to achieve your intended behavior, and it's already possible to do that today, I'll close this issue for now. Please reopen if you'd like further discussion. |
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 Report or Feature Request (mark with an
x
)Versions.
Repro steps.
this generates
The log given by the failure.
Desired functionality.
As per https://angular.io/docs/ts/latest/guide/style-guide.html#!#02-07
When you create a component in a feature, it's likely that feature can be exported. Having
app
prefix when creating a component inside a feature asumes the feature should live inside anapp
context, and can cause more collisions.Therefore, setting the module prefix to their components by default will lead to better practices
The expected result would be
could generate
Mention any other details that might be useful.
Related #5794
The text was updated successfully, but these errors were encountered: