$watch in app.run and broadcast event to controllers, you'll need some loading screen. It's timing, you control that by not letting things execute until they are ready. You can also wait until the value is present before bootstrapping angular if you prefer.
On Wednesday, August 27, 2014 1:01:33 PM UTC-6, Dan Martin wrote: > > I'm working on a hybrid (Ionic <http://ionicframework.com/> - > AngularJS-based mobile framework) mobile application that has an embedded > NoSQL datastore, Couchbase Lite <http://www.couchbase.com/mobile>. 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 > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
