Skip to content

Commit 0ab77f0

Browse files
Fixes #29 by adding the method on README documentation.
1 parent a4a3d18 commit 0ab77f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ Flash.dismiss(1);
8181
// Dismiss the flash with id of 1. Id is not the index of flash but instead a value returned by Flash.create()
8282
```
8383

84+
``` javascript
85+
Flash.clear();
86+
// Dismisses all flashes shown.
87+
```
88+
8489
#### Animating
8590
You can animate the flash messages via traditional Angular way by including _ngAnimate_ as a dependency of your application and then defining the CSS transitions for different classes (_ng-enter_, _ng-move_, _ng-leave_) provided by Angular.
8691

0 commit comments

Comments
 (0)