funky-framadate-front/src/app/core/core.module.ts

24 lines
1.0 KiB
TypeScript
Raw Normal View History

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';
import { SharedModule } from '../shared/shared.module';
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],
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');
}
}