Reputation: 22520
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?
Upvotes: 1
Views: 49
Reputation: 58
You can use below method:
$window.open('https://someurl.com','_blank');
Upvotes: 0
Reputation: 3737
You can use the $window
object that can be injected:
return $window.location = 'https://someurl.com'
Upvotes: 1