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
The text was updated successfully, but these errors were encountered:
pavankjadda commentedSep 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
this can be simplified to
Describe the solution you'd like
add a new flag called
--sfcto CLI that creates standalone, inline template and inline style componentDescribe alternatives you've considered
At present we supply 3 flags to achieve this behaviour
The text was updated successfully, but these errors were encountered: