Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

angular indexeddb

// npm install ngx-indexed-db

import { NgxIndexedDBModule } from 'ngx-indexed-db';

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({
  ...
  imports: [
    ...
    NgxIndexedDBModule.forRoot(dbConfig)
  ],
  ...
})
Comment

PREVIOUS NEXT
Code Example
Javascript :: build react app 
Javascript :: filter buttons react 
Javascript :: npm ERR! code EPERM 
Javascript :: puppeteer stealth popup 
Javascript :: como checar valor do input checkbox angular 
Javascript :: how to add jquery to an html css and javascript project 
Javascript :: javascript return 
Javascript :: jquery numeric validation 
Javascript :: angular mouseenter 
Javascript :: median of two sorted arrays 
Javascript :: set a variable in express.js 
Javascript :: javascript fuzzy search 
Javascript :: javascript dom after a element 
Javascript :: js to find value in array 
Javascript :: declare int in javascript 
Javascript :: js for i in html collection 
Javascript :: speech to text in js 
Javascript :: get all objects from s3 bucket nodejs 
Javascript :: save array file 
Javascript :: unknown provider angularjs 
Javascript :: hide screen links in drawerNavigation in react native 
Javascript :: js slice 
Javascript :: find vowels in string javascript 
Javascript :: computed property names 
Javascript :: how to get form value 
Javascript :: label tag alternative in react native 
Javascript :: what is axios used for 
Javascript :: padend javascript 
Javascript :: json web token flask 
Javascript :: loop into array javascript 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =