I've set up one plunker to describe my problem: Plnkr
Actually I want to navigate to another page in another domain (added one handler to a button click). But it's not working.
Thanks in advance.
Update
window.location.href = "http://google.com";
is working but $location.absUrl
service from AngularJS default is not working.
The $location
service does not allow to reload the page. The Angular way to perform a redirection to another domain is to use the $window
service:
$window.location.href = 'http://google.com'
Unfortunately, the $location service allow you only to change the relative path of your web application whether you want to be redirected to another site you have to use window.location.href
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With