Science, asked by venswarnamala9142, 1 year ago

What is use for emit and broadcast in Angular.Js?

Answers

Answered by rjkgupta927pefr2q
0


$broadcast() as well as $emit() allow you to raise an event in your AngularJS application. The difference between $broadcast() and $emit() is that the former sends the event from the current controller to all of its child controllers. That means $broadcast()sends an even downwards from parent to child controllers.

Answered by Anonymous
0

Answer:

$broadcast() as well as $emit() allow you to raise an event in your AngularJS application. The difference between $broadcast() and $emit() is that the former sends the event from the current controller to all of its child controllers. That means $broadcast() sends an even downwards from parent to child controllers

Similar questions