Skip to content
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

Is it possible to use this directive if i dont use $scope in my controllers? #51

Open
jrodguitar opened this issue Sep 23, 2015 · 1 comment

Comments

@jrodguitar
Copy link

Good Morning,

I ve been reading that angular 2.0 will get rid off the $scope for controllers, so i took the approach not to use it. Do you know of any way to do $broadcast or any other workaround to get the same or some functionality as if i was using $scope?

@mpiasta-ca
Copy link

$rootScope.$broadcast should work. Just inject $rootScope into your controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants