0
我有這個.cshtml網頁登錄重定向到使用按鈕angularjs另一頁點擊
<main id="login" ng-controller="loginCtrl">
<div id="page" class="full-screen min-height">
<div id="page-inner">
<div id="login-page-content" class="min-height-inner container-padding">
<div class="container center text-center">
<h1>
<label>Login</label>
</h1>
<div id="login-form">
<div>
<input type="email" id="Username" placeholder="UserName/Email" class="login-input" required="required" />
</div>
<div>
<input type="password" id="Username" placeholder="Password" class="login-input" required="required" />
</div>
<div>
</div>
<div class="cf">
<input type="submit" value="Login" class="login-submit" ng-click="clicked()"/>
</div>
</div>
<a href="#!/forgotPassword"> Forgot Details ? </a>
</div>
</div>
</div>
</div>
,這是我controller.js
angular.module('userManagement')
.controller('loginCtrl', ['$scope', '$http','$window', function ($scope, $http,$window) {
$scope.clicked = function() {
window.location = '#/join';
}
}
]);
,也是我的app.js
$routeProvider.caseInsensitiveMatch = true;
$ routeProvider.when('/ login',{ templateUrl:'帳戶/登錄', 控制器:'loginCtrl' }); 我希望能夠去另一個頁面,當我點擊按鈕,vallidations並不重要,現在我只想按鈕去頁面,當我點擊一個按鈕,與上面的代碼,它需要我
請檢查以下鏈接一次。它可能會幫助你 [https://stackoverflow.com/questions/33720267/how-to-navigate-one-page-to-another-page-using-angularjs](https://stackoverflow.com/questions/ 33720267 /如何導航的一個頁面到另一個頁面,使用-angularjs) –