if ($scope.IsFormValid) {
return $http({
url: '/User/UserLogin',
method: 'POST',
data: JSON.stringify($scope.User),
headers: { 'content-type': 'application/json' }
}).success(function (d) {
$location.path('/here'); //how to use redirection here after success
})
.error(function (data) {
$scope.LoginErrorMessage = "There was a problem logging in: " ;
});
}
问问题
44 次