In general Angular2 should follow Java naming conventions.
Classes:
- Example:
Compiler,ApplicationMetadata - Camel case with first letter upper-case
- In general prefer single words. (This is so that when appending
ProtoorFactorythe class is still reasonable to work with.) - Should not end with
Implor any other word which describes a specific implemenation of an interface.
Interfaces:
- Follow the same rules as Classes
- Should not have
IorInterfacein the name or any other way of identifing it as an interface.
Methods and functions:
- Example:
bootstrap,ngProbe - Should be camel case with first lower case
Constants
- Example:
CORE_DIRECTIVES - Should be all uppercase with SNAKE_CASE