>From the reference here for using $broadcast to avoid the child controller 
isn't initialized yet.

http://stackoverflow.com/questions/22075044/angular-broadcast-not-working
http://stackoverflow.com/questions/22327855/emit-from-child-controller-works-but-broadcast-from-parent-scope-doesnt

I wonder if any problems for that because we don't know exactly when the 
children finish initializing or not.
Is there any best way for that ?
I have a preload data for parent controller and I need to broadcast this 
data to all children controllers, I know we can use $scope.$parent to get 
it directly but I want to avoid the children need to know about '$parent'.

Thanks !

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