Inputs
| Argument | Type | Description | Default Value |
| startVisible | boolean | Set whether the component is visible since its creation or not. | false |
| style | string | Alert color style. See available styles at Bootstrap documentation. | null (no style) |
| showCloseButton | boolean | Display a button to close the alert. | null (no button) |
Outputs
| Argument | Type | Description | Default Value |
| onShow | EventEmitter<void> | Define a certain behaviour to take place whenever the component is shown. | EventEmitter<void>() (no behaviour) |
| onHide | EventEmitter<void> | Define a certain behaviour to take place whenever the component is hidden. | EventEmitter<void>() (no behaviour) |
Methods
| Method | Type | Arguments | Description | Default Value |
| visible | boolean | (none) | Check if the component is visible or not. | false |
| show | void | (none) | Show the component. | (no value) |
| hide | void | (none) | Hide the component. | (no value) |
| closeAlert | void | (none) | Close the alert component. | (no value) |
Example
<bs-alert #alert
[style]="'warning'"
[showCloseButton]="true">
Alert {{options | json}}
</bs-alert>