Miss any of our Open RFC calls?Watch the recordings here! »

@romainmarecat/ngx-slack-notification

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:'
        });
    }
}

Install

npm i @romainmarecat/ngx-slack-notification

DownloadsWeekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

90.8 kB

Total Files

47

Last publish

Collaborators

  • avatar