What is $scope and $rootScope?



What is $scope and $rootScope?..

Answer / chaitanya

The $rootScope is the top-most scope. An app can have only one $rootScope which will be shared among all the components of an app. Hence it acts like a global variable. All other $scopes are children of the $rootScope.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How to create and use custom pipes? How to create a globally available custom pipe?

0 Answers  


What are the concept of scope hierarchy? Tell me how many scope can an application have?

0 Answers  


What is transpiling?

0 Answers  


How to updating angular cli?

0 Answers  


Explain the different types of streams present in node.js?

0 Answers  






What is p table in angular?

0 Answers  


How can someone set, get, and clear cookies in angularjs?

0 Answers  


What is architecture overview of angular?

0 Answers  


What is the difference between an annotation and a decorator in angular?

0 Answers  


How to update to angular 5?

0 Answers  


When did you use currency filter in angularjs?

0 Answers  


In angular 2 module consist of what arrays?

0 Answers  


Categories