https://github.com/angular/angular
Revision f14763e4a3381acca6c44f2da03fe98716694463 authored by Dylan Hunn on 20 April 2022, 21:38:11 UTC, committed by Dylan Hunn on 20 April 2022, 21:41:58 UTC
1 parent 1d2f5c1
Raw File
Tip revision: f14763e4a3381acca6c44f2da03fe98716694463 authored by Dylan Hunn on 20 April 2022, 21:38:11 UTC
docs: release notes for the v13.3.4 release (#45703)
Tip revision: f14763e
NAMING.md
Naming Conventions in Angular
---

In general Angular should follow TypeScript naming conventions.
See: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines


Classes:
  - Example: `Compiler`, `ApplicationMetadata`
  - Camel case with first letter uppercase
  - In general prefer single words. (This is so that when appending `Proto` or `Factory` the class 
    is still reasonable to work with.)
  - Should not end with `Impl` or any other word which describes a specific implementation of an 
    interface.
  
  
Interfaces:
  - Follow the same rules as Classes 
  - Should not have `I` or `Interface` in the name or any other way of identifying it as an interface.

  
Methods and functions:
  - Example: `bootstrap`, `someMethod`
  - Should be camel case with first letter lowercase


Constants:
  - Example: `CORE_DIRECTIVES`
  - Should be all uppercase with SNAKE_CASE



back to top