This project is a collection of small apps, which are based on the examples in the
Angular book by Christoph Höller
(3rd edition, 2022).
The live page is ng-ex.watchduck.net.
The modules like m012
are encapsulated. They will be called branches.
Each branch has its own module file like m012.module.ts
.
They are included (but not otherwise used) in the main module file app.module.ts
.
ng serve
http://localhost:4200/ (ng serve --port 4401
)
ng g m m012
ng g c m012/main
ng g c m012/foo
- copy and rename folder, e.g.
m012
tom013
- rename module file and class, e.g.
m012.module.ts
(M012Module
) tom013.module.ts
(M013Module
)
- import module in
app.module.ts
- import and use component in
app-routing.module.ts
- add entry in
dashboard.component.html
Development mode is kept on in production.
ng build --configuration development