I have this in my computeCtrl:
$q.when($rootScope.imagesUrlsAreStored.promise).then(function(){
$scope.imagesUrls = storageService.get('imagesUrls');
});
because when you open the app, the paths of the images (that will be displayed in the big collection-repeat list in the Compute view) wether local or remote, are stored into a big array. And as we need this array to display the list, I have to wait for it.
edit I put this in the weightLevel View (the page before Compute View) and even if I wait for this promise to be resolved before switching to Compute View, it's still the same very long time.
$q.when($rootScope.imagesUrlsAreStored.promise).then(function(){
alert('ok imagesUrlsAreStored')
});
I don't have explicit resolve
in the .state
though.