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 { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { LoadingScreenComponent } from '../components/loading-screen/loading-screen.component';
import { MainRoutingModule } from '../components/main/routing.module'; import { MainRoutingModule } from '../components/main/routing.module';
import { PlaygroundComponent } from '../components/playground/playground.component'; import { PlaygroundComponent } from '../components/playground/playground.component';
import { SandboxComponent } from '../components/sandbox/sandbox.component'; import { SandboxComponent } from '../components/sandbox/sandbox.component';
@ -11,7 +12,7 @@ const routes: Routes = [
component: PlaygroundComponent, component: PlaygroundComponent,
}, },
{ {
path: '', path: 'main',
loadChildren: () => MainRoutingModule, loadChildren: () => MainRoutingModule,
}, },
{ {
@ -22,6 +23,10 @@ const routes: Routes = [
path: 'sign-in', path: 'sign-in',
component: SignInComponent, component: SignInComponent,
}, },
{
path: '',
component: LoadingScreenComponent,
},
]; ];
@NgModule({ @NgModule({