I'm using:
"@angular/core": "2.0.0-rc.1"
"@angular/router": "2.0.0-rc.1"
I'm trying to have multiple parameters for my Home Page, my routes are
@Routes([
{path: '/', component: HomeComponent},
{path: '/:mode', component: HomeComponent},
{path: '/:mode/:email', component: HomeComponent}
]);
When I access http://localhost:2368/test it works and I get
RouteParams.params.mode == 'test'
However, when I try to add the second parameter by accessing http://localhost:2368/test/email I get:
GET http://localhost:2368/test/js/app.js 404 (Not Found)
The browser is trying to load the app.js from test/js url which obviously doesn't exist as test is suppose to be my first parameter.
Another problem I'm having, when I try to add a real email address as the parameter I get:
Cannot GET /test@email.com
Any help would be much appreciated.
EDIT:
The 404 error as due to my webpack config which was using the relative path.
but I still can't run the url with the two router parameters