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.

[Widget] Debugging Assistance for Infinite Digest Loop Error

DulceK
Tera Contributor

Hello All,
I am relatively new to ServicenNow and AngularJS. I've been working on a widget and am unable to resolve the "$rootScope:infdig Infinite $digest Loop" error.

I’ve tried a couple different things that I’ve seen suggested in forums but I haven’t had any luck. I am still unsure what my core issue is such as whether my controller setup properly or if I’m using ng-repeat correctly.

I would greatly appreciate any advice.

I am using Xanadu and will attach parts of my HTML and Client Script that I believe the error to be occurring.

1 REPLY 1

Brad Steinberg
Tera Guru
Tera Guru

Good Morning @DulceK,

 

Debugging Angular.js within Service Portal Widgets can be tricky. Are you permitted to use an AI tool like ChatGPT or Copilot? I've found that using vibe-coding techniques can help illuminate where bugs may lie, especially with older JavaScript frameworks like Angular.js. You can try to upload your HTML template and Client script to the chatbot, along with the error and ask it questions to help you understand how to eliminate that error.