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.

Replacing windows object with AngularJS services

Niletor
Tera Contributor

How can I replace "windows.location.replace" using AngularJS services and will it work or not like it used to. Context- I'm using this method in client controller script for a Widget so will replacing windows method with Angular JS will have same functionality or not.

1 REPLY 1

Manasa chandana
Tera Contributor

Hi, Use "location.replace" method instead of "windows.location.replace".