alexbeletsky / ng-notifications-bar

Angular.js component for stylish and flexible top bar notifications.
http://beletsky.net/ng-notifications-bar
149 stars 52 forks source link

Added a closeAll() method to allow programmatic closing of all notificat... #22

Closed 4141done closed 9 years ago

4141done commented 9 years ago

Hi, I ran into this problem while using the library and thought it might be a good improvement. Basically I had situations in which I wanted any active notifications to be dismissed on route changes in my Angular app and didn't have a way to accomplish it nicely without changes to the library.

Please let me know if this is something that might be helpful and if so whether there are any changes you'd like me to make to this implementation.

Thanks,

Javier

alexbeletsky commented 9 years ago

@4141done good job, it's really nice addition..

Thought I'm kind of agree with @vikeen, I always used notifications = [];.. In this case both options are fine, but it's really good to know about notifications.length = 0;

alexbeletsky commented 9 years ago

New version published and gh-pages updated.