Last post Mar 31, 2016 06:41 AM by Fei Han - MSFT
Mar 30, 2016 08:02 PM|sudip_inn|LINK
how to explain the difference between $scope and $rootscope in angular with example. thanks
Mar 30, 2016 08:32 PM|Nataraj Gandhi Arunachalam|LINK
The following post has a good explanation and example on the difference.
Mar 31, 2016 06:41 AM|Fei Han - MSFT|LINK
the difference between $scope and $rootscope in angular
What is $scope?
What is $rootScope?
The angularjs $rootScope is the scope and one application can have only one $rootScope and It use like global variable and access in across application. The angular $rootScope is parent scope and $scopes are child scopes.
For more information, please refer to this article.