marcorinck / angular-growl

growl-like notifications for angularJS projects
MIT License
478 stars 191 forks source link

add callback parameter to process message in calling angular app #49

Open Krolock1 opened 8 years ago

Krolock1 commented 8 years ago

The callback can be use to process the message in the angular app,

e.g. write the message to a status bar:

growlProvider.registerCallback(function (message) { var html = "

" + message.text + "
"; $("#footerMsg").html(html); });