2022-07-29 11:15:54 +02:00
|
|
|
import {NgModule} from "@angular/core";
|
|
|
|
import {CommonModule} from "@angular/common";
|
2022-08-29 14:23:33 +02:00
|
|
|
import {TerminologyComponent} from "./terminology.component";
|
|
|
|
import {SeeHowItWorksComponent} from "./see-how-it-works.component";
|
2022-07-29 11:15:54 +02:00
|
|
|
import {RouterModule} from "@angular/router";
|
|
|
|
import {PreviousRouteRecorder} from "../../utils/piwik/previousRouteRecorder.guard";
|
|
|
|
import {PageContentModule} from "../../dashboard/sharedComponents/page-content/page-content.module";
|
2022-08-29 14:23:33 +02:00
|
|
|
import {HowModule} from "../how/how.module";
|
2022-07-29 11:15:54 +02:00
|
|
|
import {TabsModule} from "../../utils/tabs/tabs.module";
|
|
|
|
import {IconsModule} from "../../utils/icons/icons.module";
|
|
|
|
import {IconsService} from "../../utils/icons/icons.service";
|
|
|
|
import {graph} from "../../utils/icons/icons";
|
|
|
|
|
|
|
|
@NgModule({
|
2022-08-29 14:23:33 +02:00
|
|
|
declarations: [TerminologyComponent, SeeHowItWorksComponent],
|
2022-07-29 11:15:54 +02:00
|
|
|
imports: [CommonModule, RouterModule.forChild([
|
|
|
|
{
|
|
|
|
path: '',
|
2022-08-29 14:23:33 +02:00
|
|
|
redirectTo: 'terminology',
|
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'terminology',
|
|
|
|
component: TerminologyComponent,
|
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'how',
|
|
|
|
component: SeeHowItWorksComponent,
|
2022-07-29 11:15:54 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
|
|
|
},
|
|
|
|
]), PageContentModule, HowModule, TabsModule, IconsModule],
|
2022-08-29 14:23:33 +02:00
|
|
|
exports: [TerminologyComponent, SeeHowItWorksComponent]
|
2022-07-29 11:15:54 +02:00
|
|
|
})
|
|
|
|
export class MethodologyModule {
|
|
|
|
constructor(private iconsService: IconsService) {
|
|
|
|
this.iconsService.registerIcons([graph]);
|
|
|
|
}
|
|
|
|
}
|