Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Augustpi/angular2-notifier

Angular notifier
https://github.com/Augustpi/angular2-notifier

alert angular angular2-notifier angular8 notifer notification notifier toast toaster typescript

Last synced: about 2 months ago
JSON representation

Angular notifier

Lists

README

        

# Angular2 notifier
## Welcome

![Angular Notifier](https://woorklab.com/images/angular2-notifier.png)

## Demo link

[Angular web notifier demo page](https://augustpi.github.io/angular-dart-notifier/) (dart version)

## Angular Dart version

[Notifier Dart version](https://github.com/Augustpi/angular-dart-notifier)

## How to use

* First step import `notifier.ts` file in the **/src/** directory

```
import { Notifier } from "./notifier";
```
* and import notifier.css file (**/src/assets/**)
index.html ``````

```
sendNotifier(String type, String title, String content, int duration): void{
Notifier(type, title, content, duration).show();
}
```

```
Notifier('info', 'title', 'content here', 1000).show();
```

* **type** -> 'success', 'info', 'todo', 'reminder', 'warning' and 'danger' select one of them,
* **duration** int **milliseconds**

![Angular dart notifier example](https://woorklab.com/images/notifier2.png)

## Angular.io

For Angular [Angular](http://angulardart.io)

## * Dartlang and AngularDart

For Dartlang please visit [Dartlang](https://dart.dev/) and [Github repo](https://github.com/dart-lang),
For AngularDart [AngularDart](http://angulardart.org) and [Github](https://github.com/dart-lang/angular)
```I love Dart```

## Contribute
Our project is, without any discrimination, open to anyone who is willing to make a contribution!

## License
Our project is licensed under ***MIT license***.