You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks everyone for your feedback on the style guide RFC!
Overall, reception to revising the style guide has been very positive. The change that generated the most feedback (unsurprisingly) was the update around naming and suffixes. Based on feedback, we're planning to adjust the proposal as follows:
The style guide will make no statements about "component", "directive", and "service" suffixes for class or file names one way or another. However, Angular's own documentation and examples will not use these suffixes. Angular CLI schematics will continue to support configuring these suffixes (per the original proposal).
In order to better support tools, such as prettier or Vite plugins, we will recommend that:
All Angular template files end in .ng.html
All TypeScript files that import from @angular/core include .ng in the file name, typically as .ng.ts or .spec.ng.ts
This will allow tooling to identify Angular-specific files without needing to example the file contents.
Aside from these points, we're planning to move forward with the rest of the proposed style changes. This doesn't mean the the revised style guide will be set in stone for all eternity— moving forward, we'll be attempting to make smaller, more incremental updates the style guide as we continue to improve the framework.
The next steps for the team:
Creating an updated revision with these updates
Start working on tooling updates and opt-in refactoring tools for the changes
Reach out to community tools to plan for the updated guide
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Thanks everyone for your feedback on the style guide RFC!
Overall, reception to revising the style guide has been very positive. The change that generated the most feedback (unsurprisingly) was the update around naming and suffixes. Based on feedback, we're planning to adjust the proposal as follows:
.ng.html@angular/coreinclude.ngin the file name, typically as.ng.tsor.spec.ng.tsThis will allow tooling to identify Angular-specific files without needing to example the file contents.
Aside from these points, we're planning to move forward with the rest of the proposed style changes. This doesn't mean the the revised style guide will be set in stone for all eternity— moving forward, we'll be attempting to make smaller, more incremental updates the style guide as we continue to improve the framework.
The next steps for the team:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions