# angular-notify

> Angular service for using browser notifications

Latest version **1.2.0** (published 2016-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-notify
pnpm add angular-notify
yarn add angular-notify
bun add angular-notify
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2016-05-04 |
| First published | 2016-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/angular-notify) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Jack Hanford |
| Maintainers | jackhanford |
| Keywords | angular, notifications, ngNotifications, notify, window.Notification |

## Links

- npm: https://www.npmjs.com/package/angular-notify
- Repository: https://github.com/hanford/angular-notify
- Homepage: https://github.com/hanford/angular-notify#readme
- Issues: https://github.com/hanford/angular-notify/issues
- npm.io page: https://npm.io/package/angular-notify

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2016-05-04
- 1.1.0 — 2016-04-16
- 1.0.0 — 2016-02-23

## README

## angular-notify

[![NPM][notify-icon]][notify-url]

#### 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

[notify-icon]: https://nodei.co/npm/angular-notify.png?downloads=true
[notify-url]: https://npmjs.org/package/angular-notify

---
_Source: https://npm.io/package/angular-notify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
