Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { DBConfig } from 'ngx-indexed-db';
  2. import { NgxIndexedDBModule } from 'ngx-indexed-db';
  3. import { NgModule } from '@angular/core';
  4.  
  5. const dbConfig: DBConfig =
  6. {
  7.     name: 'MyDb', version: 1, objectStoresMeta: [
  8.         {
  9.             store: 'people',
  10.             storeConfig: { keyPath: 'id', autoIncrement: true },
  11.             storeSchema: [
  12.                 { name: 'name', keypath: 'name', options: { unique: false } },
  13.                 { name: 'email', keypath: 'email', options: { unique: false } }
  14.             ]
  15.         }
  16.     ]
  17. };
  18.  
  19. @NgModule({
  20.     declarations: [],
  21.     imports: [
  22.         NgxIndexedDBModule.forRoot(dbConfig), //THIS CAUSES THE ERROR
  23.     ],
  24.     providers: [],
  25. })
  26. export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement