$rootScope helps in communication between different controllers of an application. AngularJS can have only one rootScope for an app.
$rootScope helps in communication between different controllers of an application. AngularJS can have only one rootScope for an app.