Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit d57ab43

Browse files
committed
docs(glossary): add definitions for casing: camel, Pascal, dash, kebab
1 parent 4e1c1b7 commit d57ab43

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

public/docs/ts/latest/glossary.jade

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,18 @@ include _util-fns
105105

106106
<a id="C"></a>
107107
.l-main-section
108+
:marked
109+
## camelCase
110+
.l-sub-section
111+
:marked
112+
The practice of writing compound words or phrases such that each word or abbreviation begins with a capital letter
113+
_except the first letter which is a lowercase letter_.
114+
115+
Function, property, and method names are typically spelled in camelCase. Examples include: `square`, `firstName` and `getHeroes`.
116+
117+
This form is also known as **lower camel case**, to distinguish it from **upper camel case** which we call [PascalCase](#pascalcase).
118+
When we write "camelCase" in this documentation we always mean *lower camel case*.
119+
108120
:marked
109121
## Component
110122
.l-sub-section
@@ -128,6 +140,16 @@ include _util-fns
128140
// #docregion d1
129141
<a id="D"></a>
130142
.l-main-section
143+
:marked
144+
## dash-case
145+
.l-sub-section
146+
:marked
147+
The practice of writing compound words or phrases such that each word is separated by a dash or hyphen (-).
148+
149+
Directive selectors and the root of filenames are often spelled in dash-case. Examples include: `my-app` and the `hero-list.component.ts`.
150+
151+
This form is also known as [kebab-case](#kebab-case).
152+
131153
:marked
132154
## Data Binding
133155
.l-sub-section
@@ -374,7 +396,19 @@ include _util-fns
374396

375397

376398
<a id="J"></a>
399+
400+
.l-main-section
377401
<a id="K"></a>
402+
:marked
403+
## kebab-case
404+
.l-sub-section
405+
:marked
406+
The practice of writing compound words or phrases such that each word is separated by a dash or hyphen (-).
407+
408+
Directive selectors and the root of filenames are often spelled in kebab-case. Examples include: `my-app` and the `hero-list.component.ts`.
409+
410+
This form is also known as [dash-case](#dash-case).
411+
378412
<a id="L"></a>
379413
.l-main-section
380414
:marked
@@ -464,6 +498,16 @@ include _util-fns
464498

465499
.l-main-section
466500
<a id="P"></a>
501+
:marked
502+
## PascalCase
503+
.l-sub-section
504+
:marked
505+
The practice of writing compound words or phrases such that each word or abbreviation begins with a capital letter.
506+
Class names are typically spelled in PascalCase. Examples include: `Person` and `Customer`.
507+
508+
This form is also known as **upper camel case**, to distinguish it from **lower camel case** which we simply call [camelCase](#camelcase).
509+
In this documentation, "PascalCase" means *upper camel case* and "camelCase" means *lower camel case*.
510+
467511
:marked
468512
## Pipe
469513
.l-sub-section

0 commit comments

Comments
 (0)