2022-07-27 11:34:10 +02:00
|
|
|
import {NgModule} from "@angular/core";
|
|
|
|
import {CommonModule} from "@angular/common";
|
|
|
|
import {RouterModule} from "@angular/router";
|
|
|
|
import {IndicatorsComponent} from "./indicators.component";
|
|
|
|
import {PreviousRouteRecorder} from "../../utils/piwik/previousRouteRecorder.guard";
|
|
|
|
import {HelperModule} from "../../utils/helper/helper.module";
|
2022-08-29 15:30:12 +02:00
|
|
|
import {IndicatorThemesComponent} from "./indicator-themes.component";
|
|
|
|
import {BreadcrumbsModule} from "../../utils/breadcrumbs/breadcrumbs.module";
|
2022-07-27 11:34:10 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [CommonModule, RouterModule.forChild([
|
|
|
|
{
|
2022-08-29 15:30:12 +02:00
|
|
|
path: 'themes',
|
|
|
|
component: IndicatorThemesComponent,
|
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':type',
|
2022-07-27 11:34:10 +02:00
|
|
|
component: IndicatorsComponent,
|
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
|
|
|
},
|
2022-08-29 15:30:12 +02:00
|
|
|
]), HelperModule, BreadcrumbsModule],
|
|
|
|
declarations: [IndicatorsComponent, IndicatorThemesComponent],
|
|
|
|
exports: [IndicatorsComponent, IndicatorThemesComponent]
|
2022-07-27 11:34:10 +02:00
|
|
|
})
|
|
|
|
export class IndicatorsModule {}
|