Loading…

What do you mean by $rootscope in AngularJS?

Every application contains a single root scope, and the rest of the scopes are descendant scopes of the root scope. The function of scopes is to provide separation between the view and the model, via a mechanism for observing the model for changes. Scopes also provide event emission, event broadcast, and subscription facilities.

Suggest An Answer

No suggestions avaliable!

Latest post from Angularjs Interview Questions

Ask Question