To install this library, run:
$ npm install n9-angular2-storage --save
from your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import the library
import { N9StorageModule } from 'n9-angular2-storage';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify the library as an import
N9StorageModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
The N9IonicStorageProvider using the @ionic/storage module. You can pass the storage configuration of ionic storage into the N9IonicStorageProvider.providers()
from your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import the library
import { N9StorageModule, N9IonicStorageProvider } from 'n9-angular2-storage';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify the library as an import
N9StorageModule.forRoot({
loader: N9IonicStorageProvider,
providers: N9IonicStorageProvider.providers()
})
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
To generate all *.js
, *.js.map
and *.d.ts
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
MIT © Neo9