jn-dexie
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

JnDexie

Tiny dexie.js wrapper for angular 7, including DexieModule, DexieConfig for configuration and DexieService.

Usage

// app.module.ts

const DXCONFIG: DexieConfig = {
    databaseName: 'database',
    schema: {
        data: '++id, data',
    }
};

@NgModule({
  declarations: [
    ...
  ],
  imports: [
    ...
    DexieModule.forRoot(DXCONFIG),
    ...
  ],
  providers: [
    ...
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

Readme

Keywords

none

Package Sidebar

Install

npm i jn-dexie

Weekly Downloads

1

Version

0.0.2

License

none

Unpacked Size

75.1 kB

Total Files

32

Last publish

Collaborators

  • yoshiera