angular-notify
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/angular-notify package

1.2.0 • Public • Published

angular-notify

NPM

Installation

Installation is super easy, simply add the dependencies to your angular module, and inject notify in your angular service, component, directive or controller.

# use npm
$ npm install angular-notify

Add angular-notify to your dependencies

angular
  .module('yourApp', ['angular-notify'])
  .controller('SampleController', function (notify) {
    function onClick () {
      console.log('clicked notification!')
    }

    notify.show('Example Notification', 'path/icon.jpg', 5000, onClick)
  })

API

message

The first parameter is the message for the notification

icon

The second parameter is the icon for the notification

timeout

timeout determines how long to keep the notification, (default is 5000 milliseconds)

callback

The function you want to call when the notification is clicked

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    228
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    228
  • 1.1.0
    1
  • 1.0.0
    13

Package Sidebar

Install

npm i angular-notify

Weekly Downloads

104

Version

1.2.0

License

MIT

Last publish

Collaborators

  • hanford