Usage of window objects instead of AngularJS services

Impact area

Manageability

Severity

High

Affected element

UI Scripts

Portal Angular Provider

Portal Widgets - Client Script

Rule ID

SN-0413

Impact

 AngularJS constantly supervises your application, and for it to handle changes and events properly, AngularJS recommends that you use its services rather than window objects.

Remediation

Replace all uses of window methods with native AngularJS services where possible.

Time to fix

20 min

What's here


Related content

ServiceNow rules





Last modified on Sep 22, 2021