angularjs
Installation
SKILL.md
Google AngularJS Style Guide
Official Google AngularJS coding standards for consistent Angular 1.x applications.
Note: This guide covers AngularJS (Angular 1.x). For modern Angular (2+), see the Angular style guide.
Golden Rules
- One component per file — easier to maintain and test
- Use controllerAs syntax — avoid
$scopewhen possible - Services for business logic — keep controllers thin
- Explicit dependency injection — array annotation or
$inject - Modular structure — organize by feature, not type
- Use directives — for DOM manipulation only
- Avoid
$rootScope— use services for shared state