New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@benevideschissanga/ngx-bootstrap-alert-notification

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@benevideschissanga/ngx-bootstrap-alert-notification

**Every feedback is welcome!**

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Every feedback is welcome!

Demo

Installation

Install via npm:

$ npm install @benevideschissanga/ngx-bootstrap-alert-notification --save

or yarn:

$ yarn add @benevideschissanga/ngx-bootstrap-alert-notification

Usage

To use ngx-bootstrap-alert-notification

In your main module, import NgxBootstrapAlertNotificationModule.forRoot()

In your component inject the NgxBootstrapAlertNotificationService and use like:

this.notificationService.show(
  {
    type: 'danger',
    message:
      'This is a notification with close button and icon and can have many lines.',
    icon: 'icon icon-bell-55',
    title: 'Danger',
  },
  {
    position: 'topRight',
  }
)

NotificationData

Property NameProperty TypeProperty Value
typeNotificationTypewarning, success, primary, info, danger
titlestringTitle for the alert
iconstringIcon class name
messagestringMessage to display
templateTemplateRefCustom template

NotificationConfig

You can pass custom configs

Property NameProperty TypeProperty Value
positionstringtopLeft, topCenter, topRight, bottomLeft, bottomCenter, bottomRight
animationbooleanShould be animated or not
timeOutnumberDelay time to auto close the alert
dismissiblebooleanShould auto close or not
uniquebooleanDont show duplicated messages if true

Versions

0.0.3 - Angular 8

0.0.4 - Angular 9 0.0.5 - Angular 10

Keywords

FAQs

Package last updated on 25 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc