angular4-simple-notifications
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

angular-notifications

Installation

To install this library, run:

$ npm i angular4-simple-notifications --save

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 { }

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Walter Ribeiro

Readme

Keywords

Package Sidebar

Install

npm i angular4-simple-notifications

Weekly Downloads

13

Version

0.1.1

License

MIT

Last publish

Collaborators

  • walter-ribeiro