Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rothsandro/ng-reactive-forms-errors


https://github.com/rothsandro/ng-reactive-forms-errors

angular angular-material forms reactive-forms

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Handle multiple validation errors with Reactive Forms + Angular Material

This is a simple demo app for the blog post [Handle multiple validation errors with Reactive Forms + Angular Material](http://sandroroth.com/blog/angular-reactive-forms-errors) that shows how to handle form fields with multiple validation error messages.

Without the directive you would probably do something like this:

```html

E-mail


E-mail is required


Enter a valid e-mail

```

With the directive implemented in this demo app you can do this:

```html

E-mail

E-mail is required
Enter a valid e-mail

```

[Read my blog post](http://sandroroth.com/blog/angular-reactive-forms-errors) for more information.

---

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.4.