Please correct me if I'm wrong, but when Angular 2.0 is released I do not believe$rootScope
will be around. My conjecture is based on the fact that $scope
is being removed as well. Obviously controllers, will still exist, just not in the ng-controller
fashion.Think of injecting controllers into directives instead. As the release comes imminent, it will be best to use services as global variables if you want an easier time to switch from verison 1.X to 2.0.