You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes single message not shown (angular 1.2.6). Сorrected by adding $scope.$apply() to addMessage in directive:
function addMessage(message) {
$scope.messages.push(message);
if (message.ttl && message.ttl !== -1) {
$timeout(function () {
$scope.deleteMessage(message);
}, message.ttl);
}
$scope.$apply(); // this line fix problem
}
The text was updated successfully, but these errors were encountered:
Not sure if this helps for the developers, but I was finding that sometimes I would need to run a function twice (within the global ttl) to get a msg to show.
For example, I had a notification come up on button click. But I would have to click the button twice within 5 seconds (my global ttl setting) for just one to show up.
Elsewhere I have similar functionality and it seems to be working fine so it is certainly my code that is the issue. But I wasn't getting any errors and putting a console.log("anything") right before the growl. command would console log correctly.
Sometimes single message not shown (angular 1.2.6). Сorrected by adding
$scope.$apply()
toaddMessage
in directive:The text was updated successfully, but these errors were encountered: