0

Update: I fixed this original issue by adding

<base href="."> 

in the head of the _layout.

But now I get this below. Can anyone see why from looking at the project files?

EXCEPTION: Error: Uncaught (in promise): Error: Cannot match any routes: 'Welcome'  /node_modules/@angular/platform-browser//bundles/platform-browser.umd.js:937


I was trying to get my routing working on this tutorial I was going through and ran into this error. I can't explain why it's happening so I'm uploaded the project so anyone can see it.

I get the error in the image. I don't see what's wrong w/ my app component & thinking it's something else. Can anyone look at the code & tell me how to resolve this, please? Been on this 2 days. Using VS 2015 Community.

enter image description here

myfunnyfella
  • 1,357
  • 3
  • 18
  • 25
  • In your index.html or _Layout.cshtml (whichever you are using), add `` inside head tag. – Sanket Sep 08 '16 at 17:42
  • 1
    Possible duplicate of [Angular 2 router no base href set](http://stackoverflow.com/questions/34535163/angular-2-router-no-base-href-set) – Kanso Code Sep 08 '16 at 18:32

0 Answers0