Project

General

Profile

« Previous | Next » 

Revision 56696

[Connect|newlinking]

merge trunk to branch 56554:56686

View differences:

contact-routing.module.ts
1 1
import { NgModule } from '@angular/core';
2 2
import {RouterModule} from '@angular/router';
3 3
import {ContactComponent} from './contact.component';
4
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
4 5

  
5 6
@NgModule({
6 7
    imports: [
7 8
        RouterModule.forChild([
8
            { path: '', component: ContactComponent}
9
            { path: '', component: ContactComponent, canActivate: [IsRouteEnabled]}
9 10
        ])
10 11
    ]
11 12
})

Also available in: Unified diff