Hi Sander
Please take a look into my repo: http://jsfiddle.net/lovedota/qpwwm8bn/
I have a api to authorize when app start and the '$locationChangeStart' to 
prevent going to private page. This is the console.log()

locationChangeStart trigger:  undefined
locationChangeStart trigger:  undefined
Has User:[object Object]

When application start i want the api 'AuthService.fetchUser()' finish then 
all the angular event or handler will be triggered.
I find all things but it does not work. I have to do by that way 
https://blog.mariusschulz.com/2014/10/22/asynchronously-bootstrapping-angularjs-applications-with-server-side-data
But the code is not clean...
Please help !

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