set as default route loading screen

This commit is contained in:
cyber-dream 2022-10-31 21:52:05 +03:00
parent 2049fc8833
commit f79938a76d

View File

@ -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({