Saved Bookmarks
| 1. |
Define $rootScope in AngularJS application. |
|
Answer» $rootScope REFERS to the scope object created on the DOM element CONTAINING the ng-app directive meant for bootstrapping the ANGULARJS application. This object is available across the whole AngularJS application. There can be only one $rootScope object in the ENTIRE application. All other scope objects are known as the child scopes of that $rootScope object. |
|