irish-monitor/src/app/national/national.module.ts

22 lines
879 B
TypeScript

import {NgModule} from "@angular/core";
import {CommonModule} from "@angular/common";
import {Route, RouterModule} from "@angular/router";
import {NationalComponent} from "./national.component";
import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module";
const routes: Route[] = [
{
path: '', component: NationalComponent, children: [
{path: 'search', loadChildren: () => import('../search/search.module').then(m => m.SearchModule), data: {activeMenuItem: "national"}},
{path: '', loadChildren: () => import('../shared/monitor/monitor.module').then(m => m.MonitorModule), data: {activeMenuItem: "national"}},
], data: {stakeholder: 'irish'}
}
];
@NgModule({
imports: [CommonModule, RouterModule.forChild(routes), LoadingModule],
declarations: [NationalComponent],
exports: [NationalComponent],
})
export class NationalModule {
}