JanStevens / angular-growl-2

growl-like notifications for angularJS projects
MIT License
285 stars 97 forks source link

Manually remove the growl message. #26

Closed gsaini closed 10 years ago

gsaini commented 10 years ago

How can I remove the growl message manually?

JanStevens commented 10 years ago

There is currently no option to remove it manually, you can click on the close button or make it auto fade out.

jgoux commented 10 years ago

I think it would be great to have a method to clear all growl instances on the screen. Take the case of a form, you can display errors when the user submit the form, but if the user doesn't close the growl messages, we have no other choice than put a TTL on them, even if we don't want to.

chasemgray commented 10 years ago

38

jgoux commented 10 years ago

Could you tag and compile a new version with @chasemgray PR ?

chasemgray commented 10 years ago

Should be able to close this now.

gsaini commented 9 years ago

Which method can be used to destroy the growl message programmatically ?? Can you please add it on docs as well?

kdekooter commented 9 years ago

var message = growl.info("This adds a info message", {title: 'Random Information'}); message.destroy();

gsaini commented 9 years ago

Thanks kdekooter :)