Atomic notifications for your Angular project!
npm install angular-atomic-notifyangular-atomic-notify
=====================
> An AngularJS module to display notifications
We are using this libraries for the sample, note that jQuery is used for angular.element and font awesome for the icons, but you can use another one.
Install using bower
``bash`
bower install angular-atomic-notify
First include the css and js of the project:
`HTML`
Include the module into your own application:
`JavaScript`
angular.module('sample', ['atomic-notify']);
Add the directive to your project:
`HTML`
Also you can customize 100% the template with your own HTML:
`HTML`
`JavaScript`
atomicNotify.info(message, delay);
atomicNotify.error(message, delay);
atomicNotify.success(message, delay);
atomicNotify.warning(message, delay);
using atomicNotify.custom you can specifc the icon that you want to use in the notification:
`JavaScript`
atomicNotifyService.custom(type, message, iconClass, delay);
`JavaScript``
.config(['atomicNotifyProvider', function(atomicNotifyProvider){
atomicNotifyProvider.setDefaultDelay(5000);
atomicNotifyProvider.useIconOnNotification(true);
}])