i have this situation where i am trying to grab some data from an http 
service for initialization,
and timing wise, i need it early before even the first state transition 
occurs (using ui-router) because i need
it to be around for the first stateChangeStart event.

i've come across suggested patterns and even this package to accomplish 
similar:

https://github.com/philippd/angular-deferred-bootstrap

i am even considering experimenting with a dummy state just to piggy-back 
on it's resolve,
but i was wondering if there was some way to reuse the resolve behavior 
built into route/state provider,
or if not, if anyone else thought this could be a reasonable enhancement 
request.

in most cases, promise behavior is great because of it's well documented 
virtues, but there are these occasional 
edge cases where it doesn't fit well when it seems like having a $resolve 
service could be beneficial.

thoughts, ideas and/or suggestions appreciated.

regards,
tony.


-- 
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.

Reply via email to