I have a global js variable defined below (@Url is an ASP.Net MVC html helper it will get converted to a string value):
Here don't forget to wash your hands... Angular is just javascript
//Get something from global
let someStuffFromWindow= (window).somethingOnWindow;
//Set something
(window).somethingOnWindow="Stuff From Angular";
This is bad for some reason.. you should feel bad!
Go ahead and use that find and replace fuction for window. with (