Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-atomic-notify

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-atomic-notify

Atomic notifications for your Angular project!

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
388
increased by438.89%
Maintainers
1
Weekly downloads
 
Created
Source

angular-atomic-notify

An AngularJS module to display notifications

Sample

Dependencies

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.

  • Font Awesome
  • jQuery

Demo

- Online demo

Install

Install using bower

bower install angular-atomic-notify

Usage

Include in your project

First include the css and js of the project:

<link rel="stylesheet" type="text/css" href="src/angular-atomic-notify.css">
<script type="text/javascript" src="src/angular-atomic-notify.js"></script>

Include the module into your own application:

angular.module('sample', ['atomic-notify']);

Add the directive to your project:

<ng-atomic-notify></ng-atomic-notify>

Also you can customize 100% the template with your own HTML:

<ng-atomic-notify custom-template="custom.html"></ng-atomic-notify>

Methods

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:

atomicNotifyService.custom(type, message, iconClass, delay);

Provider

.config(['atomicNotifyProvider', function(atomicNotifyProvider){
   	atomicNotifyProvider.setDefaultDelay(5000);
	atomicNotifyProvider.useIconOnNotification(true);
}])

License

MIT

FAQs

Package last updated on 03 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc