Configuring submodules with components and routes

The manager module needs a landing page, as shown in this mock-up:

Manager's Dashboard
Let's start by creating the home screen for the ManagerModule:
  1. Create the ManagerHome component:
$ npx ng g c manager/managerHome -m manager -s -t
In order to create the new component under the manager folder, we must prefix manager/ in front of the component name. In addition, we specify that the component should be imported and declared with the ManagerModule. Since this is another landing page, it is unlikely to be complicated enough to require separate HTML and CSS files. You can use --inline-style ...

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.