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 { 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({
|
||||||
|
Loading…
Reference in New Issue
Block a user