I'm using Angular2 beta.14.
What I want to do is creating a dummy login and then redirecting user to the protected overview page which has links to other components.
Like this,
before login, visit
localhost:3000/or any protected pages will be redirected tolocalhost:3000/dummyloginafter users login, redirect user to
localhost:3000/overview
Right now, I have
app.component - contains route config for /dummylogin
overview.component - contains route config for /update etc.
dummy-login.component - contains route config for /overview
In the login component, I tried to use this.router.navigateByUrl(['Overview']) to redirect user to the Overview component after doing dummy authentication. But I got this error
ORIGINAL EXCEPTION: Child routes are not allowed for "/dummylogin".
Use "..." on the parent's route path.
This error msg doesn't make sense to me. And, I'm not sure if I'm on the right direction. Any ideas will be appreciated.