-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broadcasts in controllers (Y031) #541
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! I'm having some trouble understanding the following sentence from Y031:
While the Why? is perfectly clear to me, I'm somehow missing the answer to this very specific issue. How do I move a possible event registration, e.g.
$scope.$on()
to a factory? Can somebody provide some code for demonstration?However I do understand that it is possible to avoid broadcasts at all with the use of factories. Is that the proposition of the above sentence?
The text was updated successfully, but these errors were encountered: