Skip to content

Commit 5dcdf51

Browse files
committed
docs: improve the scaffolds session
1 parent fce69c6 commit 5dcdf51

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ Navigate to `[http://localhost:4200/]`. The app will automatically reload if you
4444

4545
### Generating other scaffolds
4646

47-
Add a new component with:
48-
```bash
49-
ng generate component my-new-component
50-
```
47+
You can use the `ng generate` (or just `ng g`) command to generate Angular components:
5148

52-
Add a new service with:
5349
```bash
54-
ng generate service my-new-service
55-
```
56-
57-
Add a new pipe with:
58-
```bash
59-
ng generate pipe my-new-pipe
50+
ng generate component my-new-component
51+
ng g component my-new-component # using the alias
6052
```
53+
You can find all possible blueprints in the table below:
54+
55+
Scaffold | Usage
56+
--- | ---
57+
Component | `ng g component my-new-component`
58+
Directive | `ng g directive my-new-directive`
59+
Pipe | `ng g pipe my-new-pipe`
60+
Service | `ng g service my-new-service`
6161

6262

6363
### Creating a build

0 commit comments

Comments
 (0)