Project

General

Profile

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

    
4
import { OpenaireOrganizationComponent } from './organization.component';
5
import {FreeGuard,PreviousRouteRecorder, IsRouteEnabled} from 'ng-openaire-library';
6

    
7

    
8
@NgModule({
9
 imports: [
10
  RouterModule.forChild([
11
    { path: '', component: OpenaireOrganizationComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
12
        redirect: '/error'
13
      },canDeactivate: [PreviousRouteRecorder] }
14
  ])
15
]
16
})
17
export class OrganizationRoutingModule { }
(2-2/3)