Simple notifications for Angular apps
- node >=6.0.0
To install this library, run:
$ yarn add angular4-simple-notifications
and then from your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import the Module
import {SimpleNotificationsModule} from 'angular4-simple-notifications';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule, // Need to import for the animations
SimpleNotificationsModule.forRoot() // Use forRoot() method
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ yarn build
To lint all *.ts
files:
$ yarn lint
👤 Walter Ribeiro
- Twitter: @walter19921
- Github: @walteribeiro
- LinkedIn: @walterribeiroti
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2020 Walter Ribeiro.
This project is MIT licensed.