alexcrack / angular-ui-notification

Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
MIT License
536 stars 169 forks source link

add a clear function for a specific notification #67

Closed alainib closed 8 years ago

alainib commented 8 years ago

I don't know if it is possible but it should be usefull to get a clear function on a specific notification. for example : var notif = Notification.warning( ... ) ; Notification.clear(notif);

I use notifications on a form to show notifications when user don't fill inputs well formated ( each inputs have different format). when the user fill well the input i want to remove the associated notification without removing all the other notifcations.

I think it would be usefull. Best regards

alainib commented 8 years ago

whoow i should read the doc more carrefully next time, it's already implemented sorry....

luanxuechao commented 6 years ago

var notif = Notification.warning( ... ) ; every notif is a Promise you can use notif .then(function(pro){ pro.kill })