Hoàng, 

I prefer to stay clear of events if possible. If your customer wants to 
make sure the events are processed, you need some form of acknowledging 
that the events are received. That's whole well possible, but it will come 
with a pretty large fee.
The thing with events is, that you know you broadcast them, but you never 
know for sure anyone is listing. 
My educated guess is that in your case, you are broadcasting an event while 
angular still is compiling parts of your page. That's why the timeout works.

Regards
Sander
 

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