import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { DBConfig } from 'ngx-indexed-db' ; import { userSettingsSchema } from './models/user-setting' ; import { UserSettingsDBService } from './services/user-settings-db.service' ; export const userSettingsDBConfig = { name : 'DATAGERRY' , version : 1 , objectStoresMeta : [ { store : 'user-settings' , storeConfig : { keyPath : 'resource' , autoIncrement : false } , storeSchema : userSettingsSchema } ] } ; @ NgModule ( { declarations : [ ] , imports : [ CommonModule ] , providers : [ UserSettingsDBService ] } ) export class UserSettingsModule { }