Question:What is $rootScope? 

Answer Scope is a special JavaScript object which plays the role of joining controller with the views. Scope contains the model data. In controllers, model data is accessed via $scope object. $rootScope is the parent of all of the scope variables. 

+ Report
Total Preview: 926
What is $rootScope?
Copyright © 2024. Powered by Intellect Software Ltd