Angular2 app that saves data on an any in-browser database (thanks to PouchDb) and syncs it with a remote couchDb as soon as the connection is restored
npm install pouchdb --save
npm install @types/pouchdb --save --save-exact
npm install -g add-cors-to-couchdb
add-cors-to-couchdb
import { OfflineDbComponent } from './offline-db.component';
import { UpdateNoteComponent } from './update-note.component';
import { OfflineDbService } from './offline-db.service';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
providers: [
OfflineDbService
],
declarations: [
OfflineDbComponent,
UpdateNoteComponent
]