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
In my case it happen because RouterModule was missed in the import.