Project

General

Profile

1
import {NgModule} from '@angular/core';
2
import {RouterModule} from '@angular/router';
3
import {ConnectCommunityGuard} from "../../openaireLibrary/connect/communityGuard/connectCommunityGuard.guard";
4

    
5
@NgModule({
6
  imports: [
7
    RouterModule.forChild([
8
      {path: '', redirectTo: 'profile', pathMatch: 'full'},
9
      {path: 'profile', loadChildren: './profile/profile.module#ProfileModule'},
10
      {path: 'organizations', loadChildren: '../affiliations/affiliations.module#AffiliationsModule'},
11
      {path: 'projects', loadChildren: '../projects/communityProjects.module#CommunityProjectsModule'},
12
      {path: 'zenodo-communities', loadChildren: '../zenodo-communities/zenodo-communities.module#ZenodoCommunitiesModule'},
13
      {path: 'subjects', canActivateChild: [ConnectCommunityGuard], loadChildren: '../subjects/subjects-edit-form/subjects-edit-form.module#SubjectsEditFormModule'},
14
      {path: 'content-providers/:provider', loadChildren: '../community/content-providers/criteria/criteria.module#CriteriaModule'},
15
    ])
16
  ],
17
  providers: [ConnectCommunityGuard]
18
})
19
export class CommunityInfoRoutingModule {
20
}
(1-1/3)