angular-bootstrap-show-errors icon indicating copy to clipboard operation
angular-bootstrap-show-errors copied to clipboard

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

Open jrodguitar opened this issue 10 years ago • 1 comments

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?

jrodguitar avatar Sep 23 '15 13:09 jrodguitar

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

mpiasta-ca avatar Sep 28 '15 21:09 mpiasta-ca