Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Broadcast event is triggering twice in a widget

Prathyusha G
Tera Contributor

$rootScope.$on('XXX', function(event, data) 

This part is running twice.

 

Please help me to stop running twice.

1 REPLY 1

Siddhesh Wani1
Tera Guru

Hi @Prathyusha G 

The broadcast happens twice because might the widget itself called twice for the function where it is calling running twice please check the script again. 


Please Mark Correct if this solves your query and also mark Helpful if you find my response worthy based on the impact.