0.3.0 • Published 6 years ago

@ngu/alert v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

ngu-alert

Angular Universal alert

Installation

npm install @ngu/alert --save

Sample

Include NguAlertModule in your app module:

import { NguAlertModule } from '@ngu/alert';

@NgModule({
  imports: [
    NguAlertModule
  ],
})
export class AppModule { }

Then use in your component:

import { Component, OnInit } from '@angular/core';
import { NguAlertService } from '@ngu/alert';

@Component({
  selector: 'sample',
  template: `<h1>Ngu Alert</h1>`,
})
export class SampleComponent implements OnInit {
    constructor(private alert: NguAlertService)

    ngOnInit() {
        for (i = 0; i < 4; i++) {
            this.alert.open({
                heading: 'This is a heading',
                msg: 'This is a message from alert',
                type: 'success',
                duration: 10000
            });
        }
    }
}

License

MIT license.

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago