1

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?

1

2 Answers 2

1

You can use the $window object that can be injected:

return $window.location = 'https://someurl.com'

Sign up to request clarification or add additional context in comments.

Comments

0

You can use below method:

$window.open('https://someurl.com','_blank');

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.