Angular >= 2 service to show Bootstrap 4 growl (alert)
ng-bootstrap-growl -Features
- add custom growl alerts somewhere in your application
- specify a maximum of alerts to show
- specify a timeout for the alerts
- display HTML in your alert
- specify whether an alert should be dismissable or not
- use all Bootstrap alert types
Demo
TBD
Dependencies
- Angular >= 2 (>= 2.4.5)
- Bootstrap 4 (4.0.0-alpha.6)
Installation
You need to install and configure the dependencies above, afterwards:
npm install --save ngx-bootstrap-growl
After installation, add the service and the component to your module:
;@
Integration
Add the component somewhere in your root template:
Parameters (optional)
alertCount
: maximum number of alerts to show (defaults:999
)autoClose
: time in milliseconds (defaults:-1
- never closed)
Style
You can configure the display area of the alerts however you want. Just use the following selector:
Usage
{ } { //general usage thisbootstrapGrowlService; //examples thisbootstrapGrowlService; thisbootstrapGrowlService; thisbootstrapGrowlService; thisbootstrapGrowlService; }