AngularJS Developer Question:

Download Job Interview Questions and Answers PDF

Explain me what is $rootScope?

AngularJS Developer Interview Question
AngularJS Developer Interview Question

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.

Download AngularJS Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What is ng-model directive?Explain routing in AngularJS?