What is the purpose of the $rootScope in AngularJS?
A. To provide data to controllers
B. To handle HTTP requests
C. To define routing information
D. To share data between controllers and scopes
Answer:D
What is the purpose of the $rootScope in AngularJS?
A. To provide data to controllers B. To handle HTTP requests C. To define routing information D. To share data between controllers and scopes