import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { MainRoutingModule } from './main-routing.module' ; import { DashboardModule } from '../dashboard/dashboard.module' ; import { NgxIndexedDBModule } from 'ngx-indexed-db' ; import { userSettingsDBConfig } from '../management/user-settings/user-settings.module' ; import { UserSettingsDBService } from '../management/user-settings/services/user-settings-db.service' ; import { UserSettingsService } from '../management/user-settings/services/user-settings.service' ; import { DateSettingsService } from '../settings/services/date-settings.service' ; @ NgModule ( { declarations : [ ] , exports : [ ] , imports : [ CommonModule , NgxIndexedDBModule . forRoot ( userSettingsDBConfig ) , MainRoutingModule , DashboardModule , ] , providers : [ UserSettingsDBService , UserSettingsService , DateSettingsService ] } ) export class MainModule { constructor ( private dateSettingsService ) { } }