Revision 59816
Added by Argiro Kokogiannaki over 3 years ago
reload-routing.module.ts | ||
---|---|---|
2 | 2 |
import { RouterModule } from '@angular/router'; |
3 | 3 |
|
4 | 4 |
import{ReloadComponent} from './reload.component'; |
5 |
import {FreeGuard} from'../login/freeGuard.guard'; |
|
6 | 5 |
import {PreviousRouteRecorder} from '../utils/piwik/previousRouteRecorder.guard'; |
7 | 6 |
|
8 | 7 |
@NgModule({ |
9 | 8 |
imports: [ |
10 | 9 |
RouterModule.forChild([ |
11 |
{ path: '', component: ReloadComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] }
|
|
10 |
{ path: '', component: ReloadComponent, canDeactivate: [PreviousRouteRecorder] } |
|
12 | 11 |
|
13 | 12 |
]) |
14 | 13 |
] |
Also available in: Unified diff
[Library|Trunk]
code clean up:
-remove app.* files from library
-remove unused imports, code, files (Old search pages for results, dataproviders, map search page, etc)
-remove Freeguard from modules
-unsubscribe all subscriptions
-Services: configuration, isvocabularies, user management: unsubscribe from app component or the component that uses them (clearSubscriptions())
-Fetchers: unsubscribe from the component that uses them (clearSubscriptions())