-1
如何刪除用戶通知的跟蹤 這些通知讓用戶無法點擊按鈕 即使通知在用戶通過點擊重新指向其彈出窗口時死亡,阻止用戶按下按鈕。被殺後的用戶通知跟蹤
[
我的控制器代碼
$scope.loginForm = function(isValid) {
// $window.location.href = '/home';
$scope.submitted = true;
if (isValid) {
service.login({
data: {
user: $scope.login
}
}).then(function(response) {
authService.isLoggedIn = response.status == "success";
if (response.status == "success") {
authService.set("userInfo", response.data)
authService.role = response.data.role;
authService.name = response.data.name;
Notification.success({message:'Successfully logged in'});
// Notification.clearAll("Successfully logged in");
}
else{
Notification.success('Invalid Credentials');
}
// console.log(response.data.redirect)
$location.path(response.data.redirect);
});
} else {
Notification.error('Error Login');
}
};
喜怎麼樣,哪裏是你angularJs代碼!你的代碼在哪裏!你的樣本在哪裏幫助人們回答你的問題......請改善你的問題。 – Maher
我單獨使用notification.success。我附上我的角碼 –
「通知服務」,只是有一個「成功」的功能?去這個服務,並檢查它是否包括「關閉」或「清除」(類似的東西)功能。 – Maher