#How to reproduce

ng serve --aot

By default it fails. To make it work:

  1. go to app-routing.module.ts,
  2. uncomment line #21
  3. comment out line #22.