我創建的web應用程序中,我需要從登錄重定向到歡迎頁面歡迎頁面,如果我的用戶名和密碼驗證重定向登錄頁面從angularjs
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function ($scope, $http, $interval) {
//login
$scope.loginbutton = function() {
$http.get('/login.asmx/loginuser', {
params: {
log: $scope.log,
pm: $scope.pm,
password: $scope.password
}
})
.then(function (response) {
{
//here i want to redirect to another page
}
})
}
});
</script>
這是我angularjs的腳本,我怎麼將頁面重定向到另一頁面?
感謝傑拉德:) –