Skip to content

AngularJS directive for Bootstap "toast" style notifications.

Notifications You must be signed in to change notification settings

xjpro/angular-toasts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-toasts

Angular directive for Bootstap "toast" notifications.

Usage

Some where in your HTML, use the directive:

<div toast="{ timeout: 2500, position: 'top' }"></div>

Then, when you want to display a notification, do so with an Angular $broadcast:

$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"
});

About

AngularJS directive for Bootstap "toast" style notifications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published