An open API service indexing awesome lists of open source software.

https://github.com/xjpro/angular-toasts

AngularJS directive for Bootstap "toast" style notifications.
https://github.com/xjpro/angular-toasts

angularjs2 bootstrap javascript

Last synced: about 1 month ago
JSON representation

AngularJS directive for Bootstap "toast" style notifications.

Awesome Lists containing this project

README

          

# angular-toasts

Angular directive for Bootstap "toast" notifications.

## Usage

Some where in your HTML, use the directive:
```


```

Then, when you want to display a notification, do so with an Angular $broadcast:
```javascript
$rootScope.$broadcast("toast", {
type: "alert-success",
text: "This is a successful message!"
});
$rootScope.$broadcast("toast", {
type: "alert-error",
text: "Oh no! Something bad has happened"
});
```