Get to the code now: https://github.com/jarodms/ionic4-pouchdb
I’ve built a couple of Ionic apps using PouchDB and I must say I love the combination. I originally built a small sample app in GitHub some time ago, but I felt it was definitely time to update it to use Angular 8, Ionic 4, and the latest version of PouchDB.
The GitHub example has the project setup along with several other configuration items that are needed. It should run out of the box after you install the npm modules. View the repo for more info on this.

- Tab 1
- Uses a DB named my-notes
- Enter a note in the field and press Enter
- Tab 2
- Uses a DB named kangaroo
- Adds a document using the interface Entry as defined in tab2.page.ts
Have fun extending this and building your own Ionic and Angular app with PouchDB.
Resources I used to build the project:
- https://pouchdb.com/guides/setup-pouchdb.html#typescript
- https://github.com/angular/angular-cli/issues/9827#issuecomment-386154063 (to fix the pesky “Uncaught ReferenceError: global is not defined”)
Please follow:
0