I am testing with the following AngularJS $location. I don\'t what\'s the problem with this. Just want to check if the redirection is working or not:
HTML
Try entering the url inside the function
$location.url('http://www.google.com')