Project

General

Profile

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

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

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

    
14
    ])
15
  ]
16
})
17
export class EntityRegistriesRoutingModule { }
(7-7/18)