14 lines
422 B
TypeScript
14 lines
422 B
TypeScript
|
import { NgModule } from '@angular/core';
|
||
|
import {RouterModule} from '@angular/router';
|
||
|
import {ContactComponent} from './contact.component';
|
||
|
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [
|
||
|
RouterModule.forChild([
|
||
|
{ path: '', component: ContactComponent, canActivate: [IsRouteEnabled]}
|
||
|
])
|
||
|
]
|
||
|
})
|
||
|
export class ContactRoutingModule { }
|