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

Add new flag --sfc to create standalone, inline template and inline style components #23901

Open
pavankjadda opened this issue Sep 12, 2022 · 0 comments

Comments

@pavankjadda
Copy link

pavankjadda commented Sep 12, 2022

Command

generate

Description

After Standalone components rolled out in v14, many of the angular devs started using single file standalone components as default. They just look cleaner, less number of files and forces us to create simple components i.e. don't put too much in single file, hence increases the re-usability and readability

At present we use

ng generate component COMPONENT_NAME --standalone --inline-style --inline-template

this can be simplified to

ng generate component COMPONENT_NAME --sfc

Describe the solution you'd like

add a new flag called --sfc to CLI that creates standalone, inline template and inline style component

Describe alternatives you've considered

At present we supply 3 flags to achieve this behaviour

ng generate component COMPONENT_NAME --standalone --inline-style --inline-template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant