2020-04-22 12:56:18 +02:00
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
import { NgModule, Optional, SkipSelf } from '@angular/core';
|
2020-05-01 19:10:17 +02:00
|
|
|
import { FormsModule } from '@angular/forms';
|
2020-04-22 12:56:18 +02:00
|
|
|
import { RouterModule } from '@angular/router';
|
2020-05-01 19:10:17 +02:00
|
|
|
import { TranslateModule } from '@ngx-translate/core';
|
2020-04-22 12:56:18 +02:00
|
|
|
|
2020-05-01 19:10:17 +02:00
|
|
|
import { HomeComponent } from './components/home/home.component';
|
2020-04-22 12:56:18 +02:00
|
|
|
import { LogoComponent } from './components/logo/logo.component';
|
2020-05-01 19:10:17 +02:00
|
|
|
import { NavigationComponent } from './components/sibebar/navigation/navigation.component';
|
2020-04-22 12:56:18 +02:00
|
|
|
import { throwIfAlreadyLoaded } from './guards/module-import.guard';
|
2020-11-05 14:39:01 +01:00
|
|
|
import { SharedModule } from '../shared/shared.module';
|
2022-02-08 14:37:07 +01:00
|
|
|
import { DialogModule } from 'primeng/dialog';
|
2020-04-22 12:56:18 +02:00
|
|
|
|
|
|
|
@NgModule({
|
2022-02-09 11:30:22 +01:00
|
|
|
declarations: [HomeComponent, LogoComponent, NavigationComponent],
|
2022-02-08 14:37:07 +01:00
|
|
|
imports: [CommonModule, FormsModule, RouterModule, TranslateModule, SharedModule, DialogModule],
|
2022-02-09 11:30:22 +01:00
|
|
|
exports: [NavigationComponent, LogoComponent],
|
2020-04-22 12:56:18 +02:00
|
|
|
})
|
|
|
|
export class CoreModule {
|
|
|
|
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
|
|
|
|
throwIfAlreadyLoaded(parentModule, 'CoreModule');
|
|
|
|
}
|
|
|
|
}
|