On this page
Angular Alert Component
Angular alert component gives contextual feedback information for common user operations. The alert component is delivered with a bunch of usable and adjustable alert messages.
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
```typescript
import { AlertModule } from '@coreui/angular';
@NgModule({
imports: [AlertModule,]
})
export class AppModule(){}
```
| name | description | type | default |
| ---- | ----------- | ---- | ------- |
| `color` | Sets the color context of the component| `string` | `'primary'` |
|`dismissible`| adds a close button to alert for self dismiss | `boolean`|_false_
|`fade`| adds optional animation for dismissible alert|`boolean`|_false_|
|`variant`| Set the alert variant to a solid | `string: 'solid'` |_undefined_|
|`visible`| toggle visibility of alert component|`boolean`|_true_|
##### Outputs
| name | description | type |
| ---- | ----------- | ---- |
| `visibleChange` | Event triggered on the alert dismiss. | `boolean` |
### cAlertHeading
_directive_
### cAlertLink
_directive_