Skip to content

Commit 75c56f8

Browse files
committed
Add case types questions
1 parent 80bf3d2 commit 75c56f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
|121| [What is a builder?](#what-is-a-builder)|
130130
|122| [How do you invoke a builder?](#how-do-you-invoke-a-builder)|
131131
|123| [How do you create app shell in Angular?](#how-do-you-create-app-shell-in-angular)|
132+
|124| [What are the case types in Angular?](#what-are-the-case-types-in-angular)|
132133

133134
1. ### What is Angular Framework?
134135

@@ -1625,5 +1626,11 @@
16251626
ng generate appShell [options] (or)
16261627
ng g appShell [options]
16271628
```
1629+
124. ### What are the case types in Angular?
1630+
Angular uses capitalization conventions to distinguish the names of various types. Angular follows the list of the below case types.
1631+
1. **camelCase :** Symbols, properties, methods, pipe names, non-component directive selectors, constants uses lowercase on the first letter of the item. For example, "selectedUser"
1632+
2. **UpperCamelCase (or PascalCase):** Class names, including classes that define components, interfaces, NgModules, directives, and pipes uses uppercase on the first letter of the item.
1633+
3. **dash-case (or "kebab-case"):** The descriptive part of file names, component selectors uses dashes between the words. For example, "app-user-list".
1634+
4. **UPPER_UNDERSCORE_CASE:** All constants uses capital letters connected with underscores. For example, "NUMBER_OF_USERS".
16281635
16291636

0 commit comments

Comments
 (0)