2020-02-08 02:01:00 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
redirectTo: 'home',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'home',
|
|
|
|
loadChildren: () => import('./home/home.module').then(m => m.HomePageModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'list',
|
|
|
|
loadChildren: () => import('./list/list.module').then(m => m.ListPageModule)
|
2020-02-08 09:36:14 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'editor',
|
2020-11-03 04:33:13 +00:00
|
|
|
loadChildren: () => import('./components/components.module').then( m => m.ComponentsModule)
|
2020-02-08 02:01:00 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
|
|
],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule {}
|