$rootScope is the top-most scope in DOM element and parent of all $scope. All applications have a scope created on HTML element is called $rootScope. It contains ng-app directive. The rootScope can access from entire application. If same variable is present in both current scope and rootScope, then application use the current scope variable.