Skip to content

Augustpi/angular2-notifier

Repository files navigation

Angular2 notifier

Welcome

Angular Notifier

Demo link

Angular web notifier demo page (dart version)

Angular Dart version

Notifier Dart version

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 <link rel="stylesheet" href="assets/notifier.css">
  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

Angular.io

For Angular Angular

* Dartlang and AngularDart

For Dartlang please visit Dartlang and Github repo, For AngularDart AngularDart and Github 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.