From f79938a76de5d28ae52b3fe3e532e3b4b8311123 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Mon, 31 Oct 2022 21:52:05 +0300 Subject: [PATCH] set as default route loading screen --- src/app/modules/app-routing.module.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/modules/app-routing.module.ts b/src/app/modules/app-routing.module.ts index d1ee2ce..d468c51 100644 --- a/src/app/modules/app-routing.module.ts +++ b/src/app/modules/app-routing.module.ts @@ -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({