Commit f590db2a authored by dev0tion's avatar dev0tion

Navigate to root

parent b53d83de
......@@ -4,6 +4,7 @@ import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
const routes: Routes = [
{ path: '', redirectTo: 'login', pathMatch: 'full'},
{ path: 'login', component: LoginComponent},
{ path: 'setup', loadChildren: 'app/setup/setup.module#SetupModule'},
{ path: 'wallet', loadChildren: 'app/wallet/wallet.module#WalletModule'}
......
......@@ -18,6 +18,6 @@ export class SetupComponent {
}
private onBackClicked() {
this.location.back();
this.router.navigate(['']);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment