We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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".