The AppModule file(s)

The first thing we need to do is to add the component references within the application module files; once again, we want to put them in the shared file.

Open the app.module.shared.ts file and update its contents in the following way (new lines are highlighted):

import { NgModule } from '@angular/core';import { CommonModule } from '@angular/common';import { FormsModule } from '@angular/forms';import { HttpClientModule } from '@angular/common/http';import { RouterModule } from '@angular/router';import { AppComponent } from './components/app/app.component';import { NavMenuComponent } from './components/navmenu/navmenu.component';import { HomeComponent } from './components/home/home.component';import { QuizListComponent ...

Get ASP.NET Core 2 and Angular 5 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.