Difference between $scope and $rootScope

“$rootScope” is a parent object of all “$scope” angular objects created in a web page.

enter image description here

$scope is created with ng-controller while $rootscope is created with ng-app.

enter image description here

Leave a Comment