I am trying to redirect a WebPage into another .HTML page on button click using $location.path('/Views/Home.html');
but its not happening . The URL is getting changed into the browser but the page is not redirecting..Here is my AngularJS code..
app.controller('LoginformController', function ($scope,$location) {
$scope.LoginCheck = function () {
alert("Trying to login !");
$location.path('/Views/Home.html');
}
scope.PasswordRecovery = function () {
alert("Clicked 2");
}
});
I am getting both the alert functions but not getting the page redirection.Please help..