Angular examples

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.

development

run

ng serve   http://localhost:4200/     (ng serve --port 4401)

add branch

fresh

ng g m m012
ng g c m012/main
ng g c m012/foo

copy

  • copy and rename folder, e.g. m012 to m013
  • rename module file and class, e.g. m012.module.ts (M012Module) to m013.module.ts (M013Module)

always

build

Development mode is kept on in production.

ng build --configuration development