成功メッセージを表示するためにブートストラップアラートボックスを使用します。メッセージが完全に表示されているアラートボックスを送信した後、問題がある、空のアラートボックスを送信する前にあります。 Thnx。ここでは、コードブートストラップ警報ボックス(角型)
$scope.resetPassword = function() {
var data = {
email: $scope.resetPasswordEmail
};
$http.post(serviceBase + 'aaaaaaaaaaaa', data).then(function (response) {
$scope.successfullyReset = true;
$scope.message = "Email has been send successfully, you will be redicted to login page in 5 seconds.";
startTimer();
}, function (response) {
$scope.successfullyReset = false;
$scope.message = "Failed to send mail. There is no user with requested email";
});
};
で、htmlコードは、ここでは、ここで
<div data-ng-hide="message == ''" data-ng-class="(successfullyReset) ? 'alert alert-success' : 'alert alert-danger'">
{{message}}
</div><br />
男:) – Arter
あなたは歓迎 – Karim