Use the validation-alert component when you want to communicate a message about the state of a form field to the user.
<sme-validation-alert [alert]="alert"></sme-validation-alert>
Alert:
{{'{'}} message: 'This is a pending alert', pending: true}
Alert:
{{'{'}} message: 'This is a error alert', severity: ValidationAlertSeverity.Error, valid: false}
Alert:
{{'{'}} message: 'This is a warning alert', severity: ValidationAlertSeverity.Warning, valid: true}
Alert:
{{'{'}} message: 'This is a info alert', severity: ValidationAlertSeverity.Informational, valid: true}
Alert:
{{'{'}} message: 'This is a success alert', valid: true}
alerts may also use markdown to render the message by setting isMarkdownMessage to true in the alert object
Alert:
{{'{'}} message: '[markdown string]', severity: ValidationAlertSeverity.Error, valid: false, isMarkdownMessage: true}