Project

General

Profile

1
import {NgModule} from "@angular/core";
2
import {RouterModule} from "@angular/router";
3

    
4
@NgModule({
5
  imports: [RouterModule.forChild([
6
    {
7
      path: '',
8
      loadChildren: () => import('../general/general.module').then(m => m.GeneralModule),
9
      data: {hasAdminMenu: true},
10
      pathMatch: 'full'
11
    },
12
    {
13
      path: 'users',
14
      loadChildren: () => import('../users/users.module').then(m => m.UsersModule),
15
      data: {hasAdminMenu: true},
16
      pathMatch: 'full'
17
    },
18
    {
19
      path: 'indicators',
20
      loadChildren: () => import('../topic/topic.module').then(m => m.TopicModule),
21
      pathMatch: 'full'
22
    },
23
    {
24
      path: 'indicators/:topic',
25
      loadChildren: () => import('../topic/topic.module').then(m => m.TopicModule),
26
      pathMatch: 'full'
27
    },
28
    {
29
      path: 'admin-tools',
30
      loadChildren: () => import('../admin-tools/admin-tools-routing.module').then(m => m.AdminToolsRoutingModule),
31
      data: {
32
        hasAdminMenu: true,
33
        param: 'stakeholder'
34
      }
35
    }
36
  ])]
37
})
38
export class AdminStakeholderRoutingModule {
39

    
40
}
    (1-1/1)