mparisi76

Results 20 comments of mparisi76

I'm not sure I understand. BTW, this isn't really an issue, just a question. In your examples you have a bunch of states, which have resolve: {dummy:blahblah}. I don't want...

That's exactly right. Before I switched from routes to states, I had the following, in my route config: ``` javascript resolve: { load: ['$q', '$rootScope', function ($q, $rootScope) { var...

BTW, I realize that this isn't a couch potato question, but more of a ui-router/angular question. I apologize for that.

Great, thanks for that. That might work in ngRoute but I'm using ui.router/scs.couch-potato and resolveDependencies(). Would it work the same way?

It's weird, I'm tweaking what you have above, but resolveDependencies() never gets called on couch potato.. I'm trying to figure out why.

Ok, resolveDependencies() does get called, however, the requireDeferred never gets resolved, and I can't log anything after that..

It's funny, I tried that before your post. I put one at 165 and 162 and neither of them are being hit. I will keep digging.

A note, if I remove '.then(requireDeferred.resolve);' after resolveDependencies(), any code after that line executes. If I leave it in there, nothing executes after it. Might be interesting. Also, breakpoint at...

Ahh, I see what you mean. The problem with that, is now $q and $rootScope are undefined in delay()

YES!! You rock! Finally got this to work, I tweaked your solution just a hair, using $q.all(), do you see any issues in doing so? ``` javascript resolve: { load:...