Explain $rootscope in angularjs.
Answer / Ranjeet Singh Chahar
$rootScope is a special scope object in AngularJS that serves as the topmost scope in an application hierarchy. It's used for sharing data across different parts of the application, including between child and parent scopes.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between the $watch, $digest, and $ apply?
How to sanitize a value manually?
What is property binding?
What is an event listener?
How to create datepicker in angular 4?
What is ViewEncapsulation?
What are lifecycle hooks and why it is important?
Enlist major matchers available in jasmine?
What is ivy in angular?
How to create a service in angular?
What are angular expressions?
When to use factory?