GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — angular/docs/NAMING.md at master · getamazednow/angular

Expand file tree

/

NAMING.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
32 lines (20 loc) · 889 Bytes
/

NAMING.md

Copy path

File metadata and controls

32 lines (20 loc) · 889 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.