The 2017 Ionic Developer Survey Results are in!

Couchbase Lite

Improve this doc

Plugin to install Couchbase Lite in your PhoneGap app on iOS or Android

Repo: https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add couchbase-lite-phonegap-plugin
    $ npm install --save @ionic-native/couchbase-lite
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { CouchbaseLite } from '@ionic-native/couchbase-lite';

constructor(private couchbase: CouchbaseLite) {

  couchbase.getURL()
    .then(url => console.log(url))
    .catch(error => console.error(error));

}

Instance Members

getURL()

Get the database url

Returns: Promise<any> Returns a promise that resolves with the local database url

API

Native

General