Taiga UI 5.0 is out!

Error CORE

Examples API GitHub

On this page

Component for showing arbitrary messages styled as errors, with height and fade transition, as well as displaying form validation errors from controls

Basic

Using as standalone or to display validation errors from form control.

If you want to show a validation message as soon as a user starts typing, subscribe on form value changes and call markAsTouched on control on first value change.
Below is an error for the entire form:

DI

Providing validation error messages for various errors with DI token.

Template

Using ng-template to show rich HTML error messages.

Array

Using with dynamic FormArray

Contact list

Asynchronous

Displaying error message via async validators.

Pipe

Using pipe to feed error message to the hint directive.
NamePrice
Latte
Cappuccino

Component

Reusable error messages with a dedicated component.

Initially touched

Value is invalid