1.

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.

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.



Discussion

No Comment Found