set as default route loading screen
This commit is contained in:
parent
2049fc8833
commit
f79938a76d
@ -1,5 +1,6 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { LoadingScreenComponent } from '../components/loading-screen/loading-screen.component';
|
||||
import { MainRoutingModule } from '../components/main/routing.module';
|
||||
import { PlaygroundComponent } from '../components/playground/playground.component';
|
||||
import { SandboxComponent } from '../components/sandbox/sandbox.component';
|
||||
@ -11,7 +12,7 @@ const routes: Routes = [
|
||||
component: PlaygroundComponent,
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
path: 'main',
|
||||
loadChildren: () => MainRoutingModule,
|
||||
},
|
||||
{
|
||||
@ -22,6 +23,10 @@ const routes: Routes = [
|
||||
path: 'sign-in',
|
||||
component: SignInComponent,
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
component: LoadingScreenComponent,
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
Loading…
Reference in New Issue
Block a user