Eager loading

This section is purely an exercise to demonstrate how the concepts we have learned so far in importing and registering routes doesn't result in a scalable solution, regardless of eagerly or lazily loading components:

  1. Import the manager.module to app.module:
 src/app/app.module.ts import { ManagerModule } from './manager/manager.module'   ...   imports: [   ...     ManagerModule,   ]

You will note that http://localhost:5000/manager still doesn't render its home component.

  1. Use Augury to debug the router state, as shown:
Router Tree with Eager Loading
  1. It seems as if the /manager path is correctly registered and pointed at the correct component, ...

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.