Revision 59262
Added by Konstantinos Triantafyllou over 3 years ago
mainSearch-routing.module.ts | ||
---|---|---|
1 |
import { NgModule } from '@angular/core';
|
|
2 |
import { RouterModule } from '@angular/router';
|
|
1 |
import {NgModule} from '@angular/core';
|
|
2 |
import {RouterModule} from '@angular/router';
|
|
3 | 3 |
|
4 |
import{OpenaireSearchComponent} from './search.component'; |
|
4 |
import {OpenaireSearchComponent} from './search.component';
|
|
5 | 5 |
import {FreeGuard} from "../../openaireLibrary/login/freeGuard.guard"; |
6 | 6 |
import {PreviousRouteRecorder} from "../../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; |
7 | 7 |
|
8 | 8 |
@NgModule({ |
9 | 9 |
imports: [ |
10 | 10 |
RouterModule.forChild([ |
11 |
// { path: '', component: OpenaireSearchComponent } |
|
12 |
{ path: '', component: OpenaireSearchComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] } |
|
13 |
|
|
11 |
{path: '', component: OpenaireSearchComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder]} |
|
14 | 12 |
]) |
15 | 13 |
] |
16 | 14 |
}) |
17 |
export class MainSearchRoutingModule { } |
|
15 |
export class MainSearchRoutingModule { |
|
16 |
} |
Also available in: Unified diff
[Connect | Trunk]: Add Previous Route Recorder to all routes.