Service Portal- How to use \$broadcast for multiple events/widgets?

ajam
ServiceNow Employee
ServiceNow Employee

Currently, I have two widgets out of which one is hidden.

There is ng-click event ($broadcast) for the first widget that will display the second widget.

How to get multiple widgets to be displayed on a single click using $broadcast?

Thanks,

AJ

1 ACCEPTED SOLUTION

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Anusha



Not sure if you have seen this blog. It quick good it should explain exactly what you need.



https://community.servicenow.com/community/develop/blog/2016/06/26/how-to-communicate-between-two-wi...



I hope this will help/answer your question and if it does please mark it



Cheers


R0b0


View solution in original post

2 REPLIES 2

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Anusha



Not sure if you have seen this blog. It quick good it should explain exactly what you need.



https://community.servicenow.com/community/develop/blog/2016/06/26/how-to-communicate-between-two-wi...



I hope this will help/answer your question and if it does please mark it



Cheers


R0b0


Chuck Tomasi
Tera Patron