I'm working on a hybrid (
Ionic - AngularJS-based mobile framework) mobile application that has an embedded NoSQL datastore,
Couchbase Lite. CBL plug-in for PhoneGap/Cordova/Ionic only provides a method for retrieving the URL of the embedded DB. And it seems like it's only accessible "on device ready" (I tried calling the function else where and didn't work).
I was hoping to resolve the URL during Angular's bootstrap phase and save it to the rootScope so it's accessible elsewhere in the application, particularly in my services, but this didn't work either.
I'm kind of stuck because there is no other way for me to provide a URL for my resources.
Thoughts...solutions??
Thanks,
Dan