2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2018-12-04 19:31:24 +01:00
|
|
|
|
2018-08-09 16:03:24 +02:00
|
|
|
const routes: Routes = [
|
2019-03-08 10:43:54 +01:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: './modules/motion-list/motion-list.module#MotionListModule',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'import',
|
|
|
|
loadChildren: './modules/motion-import/motion-import.module#MotionImportModule'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'statute-paragraphs',
|
|
|
|
loadChildren: './modules/statute-paragraph/statute-paragraph.module#StatuteParagraphModule'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'comment-section',
|
|
|
|
loadChildren: './modules/motion-comment-section/motion-comment-section.module#MotionCommentSectionModule'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'call-list',
|
|
|
|
loadChildren: './modules/call-list/call-list.module#CallListModule'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'category',
|
|
|
|
loadChildren: './modules/category/category.module#CategoryModule'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
loadChildren: './modules/motion-block/motion-block.module#MotionBlockModule'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'workflow',
|
|
|
|
loadChildren: './modules/motion-workflow/motion-workflow.module#MotionWorkflowModule'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'new',
|
|
|
|
loadChildren: './modules/motion-detail/motion-detail.module#MotionDetailModule'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':id',
|
2019-03-13 15:16:06 +01:00
|
|
|
loadChildren: './modules/motion-detail/motion-detail.module#MotionDetailModule',
|
|
|
|
runGuardsAndResolvers: 'paramsChange'
|
2019-03-08 10:43:54 +01:00
|
|
|
}
|
2018-08-09 16:03:24 +02:00
|
|
|
];
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class MotionsRoutingModule {}
|