fix(auth routing): scene may cause 404

when direct to /auth , it shows the login page . 
Then click 'Register' to register page . It will cause 404 beacuse the routerLink of login.component.html is '../register' .
This commit is contained in:
Naced 2019-08-14 17:24:39 +08:00 committed by GitHub
parent ede1b074f0
commit 15f6222d08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,8 @@ const routes: Routes = [
children: [
{
path: '',
component: NbLoginComponent,
redirectTo: 'login',
pathMatch: 'full',
},
{
path: 'login',