Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { DBConfig } from 'ngx-indexed-db';
- import { NgxIndexedDBModule } from 'ngx-indexed-db';
- import { NgModule } from '@angular/core';
- const dbConfig: DBConfig =
- {
- name: 'MyDb', version: 1, objectStoresMeta: [
- {
- store: 'people',
- storeConfig: { keyPath: 'id', autoIncrement: true },
- storeSchema: [
- { name: 'name', keypath: 'name', options: { unique: false } },
- { name: 'email', keypath: 'email', options: { unique: false } }
- ]
- }
- ]
- };
- @NgModule({
- declarations: [],
- imports: [
- NgxIndexedDBModule.forRoot(dbConfig), //THIS CAUSES THE ERROR
- ],
- providers: [],
- })
- export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement