This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Code Style Guide In Angular Application #40
Comments
Naming ConventionComponent member methods
File Naming ConventionAngular CLI supports generating various file types, including:
However, it does not provide a direct command for generating "models." As a best practice, it is recommended to follow the Angular CLI-generated file naming conventions for consistency. Sample Code: |
Code Organization ( in component ts file)Good practices on component
Component member methods declaration order
Packages and File Import Order
And, we need a line break between each import group Grouping component variablesSuggest organizing component variables by topic and incorporating a line break between distinct data groups, as exemplified by: // group on user data
userData = new User();
isLoadingUserData = true;
// group user orders
isLoadingUserOrders = true;
userOrder = undefined; |
reboottime
changed the title
Code Style In Angular Application
Code Style Guide In Angular Application
Dec 7, 2023
Folder and File Organization
Bellow is a widely accepted Angular application folder structure.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Overview
This article discusses the code style I endorse for Angular applications.
References
The text was updated successfully, but these errors were encountered: