My SPA starts with something like http://localhost:3000/dist/dev which is 
mangement by the MainComponent. From there i can navigate to other 
components by clicking on buttons with routerLinks. So looking up an order 
would show the childroute http://localhost:3000/dist/dev/orders/42 which 
leads to loading the OrderComponent.

Now the problem: If I reload the page the url will stay, but the router 
doesn't recognize the path and will only show the page, that would be shown 
if only http://localhost:3000/dist/dev was in the url, thus only loading 
the MainComponent and not the expected OrderComponent. Any idea how to fix 
this?

Btw. I already fixed the "Cannot GET ..." error with redirecting all 
requests to the index.html:

  server.get('*', function(req, res, next) {
    res.sendFile(process.cwd() + APP_BASE + APP_DEST + '/index.html');
  });

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to