What is $rootScope in angular js?
An AngularJS application has a single $rootScope. All the other $scope objects are child objects. The properties and methods attached to $rootScope will be available to all the controllers. The following example demonstrates the $rootScope and $scope object. [crayon-68e61918109d5945802031/] and the output looks like [crayon-68e61918109df973206608/] Drop comment if you have any query. :)
Read more