---
title: Usage Of Window Objects Instead Of AngularJS Services
description: "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…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/servicenow-rules/usage-of-window-objects-instead-of-angularjs-services/"
updated: "2025-03-21"
category: Rules
---

# 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
