Even more opinionated Angular 2 Style Guide
summary
Cuts the official 120-rule Angular guide down to ~40 rules and names concrete limits: one class per file, component files capped at 400 lines, helper functions around 75 lines. Uses kebab-case selectors and suffixes like .component for searchable filenames, places bootstrapping in main.ts, prefers Injectable classes over inject parameters, registers services at the top-level injector as singletons, keeps flat folders until a feature has seven files, implements lifecycle interfaces for strong typing, uses Angular CLI and VS Code and lints with configurable rules.
AI-written summary · about
chapters (7)
- 0:00Intro
- 1:16Angular Style Guide
- 2:14Single Responsibility
- 4:08Naming Conventions
- 10:32Application Structure
- 12:10Components
- 15:19Services
related talks
19mDigging into Angular Style Guide Decisions
01h 11mAngular 2 for Angular 1 developers
44mRockin’ in the Angular World
53mScaling large Angular apps
41mThe most infamous code smells in Angular Applications
35mHow to Organize an Angular Project
20mEngineering Scalable Angular Components
21mAngular for Designers
