Adding the Edit route

Last but not least, we need to add the Edit route to the AppModule class. Open the /ClientApp/app/app.module.shared.ts file and add the following:

[...]RouterModule.forRoot([    { path: '', redirectTo: 'home', pathMatch: 'full' },    { path: 'home', component: HomeComponent },    { path: 'quiz/create', component: QuizEditComponent },    { path: 'quiz/edit/:id', component: QuizEditComponent },[...]

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.