【发布时间】:2015-04-18 15:28:01
【问题描述】:
我想通过 mvc 动作在 angular 函数中成功重定向用户。这是我的控制器:
$scope.login = function () {
debugger;
authService.login($scope.loginData).then(function (response) {
debugger;
$modalInstance.close(true);
$location.path('/Home');
},
function (err) {
$scope.message = err.error_description;
$modalInstance.dismiss();
});
};
但它不起作用?
肮脏的方式是:
<p class="login-success" ng-if="cartable">
@Html.ActionLink("ورود به کارتابل", "Index", "Home", null, null)
</p>
【问题讨论】:
标签: asp.net-mvc angularjs