| Root of Scope
All of application have a $rootScope which is scope created on the HTML element that have ng-app directive. And this rootScope is available in entire application.
If the variable name is same in both current scope and rootScope then applications uses the one which is current scope.
Here in below example we have used a variable "color" which is exist in both controller scope and in rootScope.
 | | |