I have a mvc 5 project with a angular frontend . I wanted to add routing as described in this tutorial https://angular.io/guide/router. So in my _Layout.cshtml I ad
_Layout.cshtml
Try this:
Import RouterModule into your app.module.ts
RouterModule
app.module.ts
import { RouterModule } from '@angular/router';
Add RouterModule into your imports []
imports []
like this:
imports: [ RouterModule, ]