Project

General

Profile

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

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

    
7
@NgModule({
8
  imports: [
9
    RouterModule.forChild([
10
     	{ path: '', component: SearchCompatibleDataprovidersTableComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
11
          redirect: '/error'
12
        }, canDeactivate: [PreviousRouteRecorder] }
13

    
14
    ])
15
  ]
16
})
17
export class CompatibleDataProvidersTableRoutingModule { }
(4-4/18)