Skip to content

Instantly share code, notes, and snippets.

@CelsoSantos
Created August 2, 2016 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CelsoSantos/8b5bbbc8100e768dc57fd9c7751d6732 to your computer and use it in GitHub Desktop.
Save CelsoSantos/8b5bbbc8100e768dc57fd9c7751d6732 to your computer and use it in GitHub Desktop.
Ionic Couchbase Error Sample
import cblDB = require('./services/couchbase/cbl');
...
initializeApp() {
this.platform.ready().then(() => {
this.db = new cblDB("test");
console.log("THIS DB "+ JSON.stringify(this.db));
this.db.initDB()
.then((success) => {
console.log("INIT "+success);
alert('CBL Ready :)')
})
.catch((err) => { console.log("ERR init "+err); });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment