@romainmarecat/ngx-slack-notification
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

NGX Slack Notification

Maintainability

Installation

npm i --save @romainmarecat/ngx-slack-notification

Usage

import { SlackModule } from '@romainmarecat/ngx-slack-notification';

@NgModule({
  imports: [
    SlackModule.forRoot('HTTPS://YOUR-SLACK-WEBHOOKS')
  ]
})
import { SlackNotificationService } from '@romainmarecat/ngx-slack-notification';

export class ExampleComponent extends OnInit {
            
    constructor(private slackNotificationService: SlackNotificationService) {
    }   
    
    ngOnInit() {
        this.slackNotificationService.notify({
            text: 'Hello World <https://alert-system.com/alerts/1234|Click here> ! Bye.', 
            username: 'System', 
            icon_emoji: ':camel:'
        });
    }
}

Package Sidebar

Install

npm i @romainmarecat/ngx-slack-notification

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

90.8 kB

Total Files

47

Last publish

Collaborators

  • romainmarecat