docs(glossary): add definitions for casing: camel, Pascal, dash, kebab
This commit is contained in:
parent
4e1c1b7775
commit
d57ab436c0
|
@ -105,6 +105,18 @@ include _util-fns
|
||||||
|
|
||||||
<a id="C"></a>
|
<a id="C"></a>
|
||||||
.l-main-section
|
.l-main-section
|
||||||
|
:marked
|
||||||
|
## camelCase
|
||||||
|
.l-sub-section
|
||||||
|
:marked
|
||||||
|
The practice of writing compound words or phrases such that each word or abbreviation begins with a capital letter
|
||||||
|
_except the first letter which is a lowercase letter_.
|
||||||
|
|
||||||
|
Function, property, and method names are typically spelled in camelCase. Examples include: `square`, `firstName` and `getHeroes`.
|
||||||
|
|
||||||
|
This form is also known as **lower camel case**, to distinguish it from **upper camel case** which we call [PascalCase](#pascalcase).
|
||||||
|
When we write "camelCase" in this documentation we always mean *lower camel case*.
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
## Component
|
## Component
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
|
@ -128,6 +140,16 @@ include _util-fns
|
||||||
// #docregion d1
|
// #docregion d1
|
||||||
<a id="D"></a>
|
<a id="D"></a>
|
||||||
.l-main-section
|
.l-main-section
|
||||||
|
:marked
|
||||||
|
## dash-case
|
||||||
|
.l-sub-section
|
||||||
|
:marked
|
||||||
|
The practice of writing compound words or phrases such that each word is separated by a dash or hyphen (-).
|
||||||
|
|
||||||
|
Directive selectors and the root of filenames are often spelled in dash-case. Examples include: `my-app` and the `hero-list.component.ts`.
|
||||||
|
|
||||||
|
This form is also known as [kebab-case](#kebab-case).
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
## Data Binding
|
## Data Binding
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
|
@ -374,7 +396,19 @@ include _util-fns
|
||||||
|
|
||||||
|
|
||||||
<a id="J"></a>
|
<a id="J"></a>
|
||||||
|
|
||||||
|
.l-main-section
|
||||||
<a id="K"></a>
|
<a id="K"></a>
|
||||||
|
:marked
|
||||||
|
## kebab-case
|
||||||
|
.l-sub-section
|
||||||
|
:marked
|
||||||
|
The practice of writing compound words or phrases such that each word is separated by a dash or hyphen (-).
|
||||||
|
|
||||||
|
Directive selectors and the root of filenames are often spelled in kebab-case. Examples include: `my-app` and the `hero-list.component.ts`.
|
||||||
|
|
||||||
|
This form is also known as [dash-case](#dash-case).
|
||||||
|
|
||||||
<a id="L"></a>
|
<a id="L"></a>
|
||||||
.l-main-section
|
.l-main-section
|
||||||
:marked
|
:marked
|
||||||
|
@ -464,6 +498,16 @@ include _util-fns
|
||||||
|
|
||||||
.l-main-section
|
.l-main-section
|
||||||
<a id="P"></a>
|
<a id="P"></a>
|
||||||
|
:marked
|
||||||
|
## PascalCase
|
||||||
|
.l-sub-section
|
||||||
|
:marked
|
||||||
|
The practice of writing compound words or phrases such that each word or abbreviation begins with a capital letter.
|
||||||
|
Class names are typically spelled in PascalCase. Examples include: `Person` and `Customer`.
|
||||||
|
|
||||||
|
This form is also known as **upper camel case**, to distinguish it from **lower camel case** which we simply call [camelCase](#camelcase).
|
||||||
|
In this documentation, "PascalCase" means *upper camel case* and "camelCase" means *lower camel case*.
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
## Pipe
|
## Pipe
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
|
|
Loading…
Reference in New Issue