I am using ajax call to perform functionality in a service file and if the response is successful, I want to redirect the page to another url. Currently, I am doing this by
Using location.href="./index.html"
location.href="./index.html"
or create scope $window
scope $window
and using $window.location.href="./index.html"
$window.location.href="./index.html"