Use descriptive and meaningful names for all identifiers.
Component, service, and directive class names should use PascalCase and end with their type (e.g., UserProfileComponent, AuthService, HighlightDirective).
File names should use kebab-case and reflect the class type (e.g., user-profile.component.ts, auth.service.ts).
Variables and function names should use camelCase.
Interfaces should use PascalCase and start with I (e.g., IUser, IAuthResponse).
Enum names should use PascalCase.
Constants should use uppercase letters with underscores (e.g., MAX_RETRIES).
Selectors for components and directives should use a unique prefix (e.g., eris-user-profile).
Avoid abbreviations unless they are well-known and improve clarity.
Use singular names for services and models, plural for collections.
Prefix private properties and methods with an underscore only if required for clarity.
Guidelines for Aligning with Anticipated New Angular Versions¶
Regularly review Angular release notes and migration guides to stay informed about upcoming changes and deprecations.
Prefer using Angular's recommended APIs and patterns to ensure forward compatibility.
Avoid reliance on deprecated features; refactor code proactively when deprecation warnings appear.
Monitor third-party dependencies for Angular compatibility and update them as needed.
Document custom workarounds or polyfills that may need revision in future Angular versions.
Schedule regular codebase reviews to identify areas that may be impacted by upcoming Angular changes.