Created
August 2, 2016 11:26
-
-
Save CelsoSantos/8b5bbbc8100e768dc57fd9c7751d6732 to your computer and use it in GitHub Desktop.
Ionic Couchbase Error Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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