In my angularjs app I want to redirect to a different site / domain. I am using:
$location.url(someOtherDomain);
How can I redirect to this url from my angularjs app?
In my angularjs app I want to redirect to a different site / domain. I am using:
$location.url(someOtherDomain);
How can I redirect to this url from my angularjs app?
You can use the $window object that can be injected:
return $window.location = 'https://someurl.com'