My bootup Angular2 component has a routing table
@RouteConfig([
{ path: '/welcome', name: 'Welcome', component: WelcomeComponent, useAsDefault: true },
{ path: '/search', name: 'Search', component: SearchComponent },
{ path: '/confirm', name: 'Confirm', component: ConfirmComponent },
{ path: '/office', name: 'Office', component: OfficeComponent }
])
There is a <base href="/">
in the SPA index.html and the whole app works perfectly when served up from node lite.
I'm now running it on IIS in Azure and have it all working apart from the routing. The root default route works - but all other navigation fails with a 404.
I using [routerLink]="['Search']"
for my links.
There are a couple of similar questions on S/O - but no solution I can find.