Alert
Reusable alert component created with Bootstrap 5+ and Angular 11+
New Features
Added Angular 12 Support
Technologies
API
List of selectors that can be used to select the component
Properties
| dismissible | If set, displays an inline "Close" button | boolean | false |
| dismissOnTimeout | If set, dismisses the alert after Dismiss Timeout | boolean | true |
| dismissTimeout | Number in milliseconds, after which alert will be closed | string or number | 5000 |
| isOpen | Is alert visible | boolean | false |
| type | Alert type. Provides one of four bootstrap supported contextual classes: success, info, warning and danger | string | info |
Test project locally in another repo
Run the following steps inside library folder
$ npm install
$ npm run build
$ npm link dist/alert
Inside the Test/Actual project, remove the dependency and link local dependency
$ npm install
$ npm link @ngxsmart/alert
- Add property
"preserveSymlinks": true to angular.json if not already exists
- Start the project
$ npm start
Publish the library to NPM(applies to maintainers)
$ ng build --configuration production --project=@ngxsmart/alert
- Publish the library to NPM
$ npm publish dist/alert --access public