1
|
import {NgModule} from '@angular/core';
|
2
|
import {CommonModule} from '@angular/common';
|
3
|
|
4
|
import {RouterModule} from '@angular/router';
|
5
|
|
6
|
import {OrcidComponent} from './orcid.component';
|
7
|
import {OrcidService} from './orcid.service';
|
8
|
import {FreeGuard} from '../login/freeGuard.guard';
|
9
|
import {PreviousRouteRecorder} from '../utils/piwik/previousRouteRecorder.guard';
|
10
|
import {OrcidWorkComponent} from './orcid-work.component';
|
11
|
import {AlertModalModule} from '../utils/modal/alertModal.module';
|
12
|
import {ResultLandingService} from '../landingPages/result/resultLanding.service';
|
13
|
import {LoadingModule} from '../utils/loading/loading.module';
|
14
|
import {ResultLandingUtilsModule} from '../landingPages/landing-utils/resultLandingUtils.module';
|
15
|
import {IconsModule} from '../utils/icons/icons.module';
|
16
|
import {IconsService} from '../utils/icons/icons.service';
|
17
|
import {add, preview, refresh, remove} from '../utils/icons/icons';
|
18
|
|
19
|
@NgModule({
|
20
|
imports: [
|
21
|
CommonModule, RouterModule, AlertModalModule, LoadingModule, ResultLandingUtilsModule,
|
22
|
IconsModule
|
23
|
],
|
24
|
declarations: [
|
25
|
OrcidComponent,
|
26
|
OrcidWorkComponent
|
27
|
],
|
28
|
providers:[
|
29
|
FreeGuard, PreviousRouteRecorder,
|
30
|
OrcidService, ResultLandingService
|
31
|
],
|
32
|
exports: [
|
33
|
OrcidComponent,
|
34
|
OrcidWorkComponent
|
35
|
]
|
36
|
})
|
37
|
|
38
|
|
39
|
export class OrcidModule{
|
40
|
constructor(private iconsService: IconsService) {
|
41
|
this.iconsService.registerIcons([add, remove, preview, refresh]);
|
42
|
}
|
43
|
}
|