I need to launch multiple windows from my angular application. What I want is to give the user the option to click a button on the main page in order to bring one of these windows back into focus. Typically, in JavaScript, I would accomplish this using the following code:
// Launch the window
newWindow = window.open("http://test.com",'windowName','_blank');
// Then later, to bring the window back into focus
myWindow.focus();
With angular, I can open a new window like this (using the $window service):
$window.open("",'newWindow','_blank');
My question is, how can I use the $window service to bring a specific window back into focus?
Thank you in advance.