$rootScope
object is inherited by all of the $scope objects within the same module. It is very useful and defines global behavior. It can be injected inside any component such as controllers, directives, filters, and services; however, the most common place to use it is through the run function of the module API, shown as follows the run.js file:parking.run(function ($rootScope) {
$rootScope.appTitle = "Parking";
});