AngularJS controllers use the __________ method to listen for events broadcasted by child scopes.

  • $broadcast
  • $emit
  • $on
  • $watch
AngularJS controllers use the $on method to listen for events broadcasted by child scopes. The $on method is part of the scope object and allows controllers to subscribe to custom events emitted by child scopes. This mechanism enables communication between different parts of the application and plays a crucial role in building modular and maintainable AngularJS applications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *