{"id":17022838,"url":"https://github.com/rothsandro/ng-reactive-forms-errors","last_synced_at":"2026-01-23T07:34:29.157Z","repository":{"id":168571573,"uuid":"512524802","full_name":"rothsandro/ng-reactive-forms-errors","owner":"rothsandro","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-11T17:56:12.000Z","size":220,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T04:17:40.402Z","etag":null,"topics":["angular","angular-material","forms","reactive-forms"],"latest_commit_sha":null,"homepage":"https://sandroroth.com/blog/angular-reactive-forms-errors","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rothsandro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-10T19:45:03.000Z","updated_at":"2024-04-10T16:16:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"56272647-5eec-4add-b661-10d29e2bafaf","html_url":"https://github.com/rothsandro/ng-reactive-forms-errors","commit_stats":null,"previous_names":["rothsandro/ng-reactive-forms-errors"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rothsandro/ng-reactive-forms-errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rothsandro%2Fng-reactive-forms-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rothsandro%2Fng-reactive-forms-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rothsandro%2Fng-reactive-forms-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rothsandro%2Fng-reactive-forms-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rothsandro","download_url":"https://codeload.github.com/rothsandro/ng-reactive-forms-errors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rothsandro%2Fng-reactive-forms-errors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28683441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-material","forms","reactive-forms"],"created_at":"2024-10-14T07:11:26.464Z","updated_at":"2026-01-23T07:34:29.135Z","avatar_url":"https://github.com/rothsandro.png","language":"TypeScript","readme":"# Handle multiple validation errors with Reactive Forms + Angular Material\n\nThis 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.\n\nWithout the directive you would probably do something like this:\n\n```html\n\u003cmat-form-field\u003e\n  \u003cmat-label\u003eE-mail\u003c/mat-label\u003e\n  \u003cinput type=\"email\" matInput [formControl]=\"form.controls.email\" /\u003e\n  \u003cmat-error *ngIf=\"form.controls.email.hasError('required')\"\u003e\n    E-mail is required\n  \u003c/mat-error\u003e\n  \u003cmat-error *ngIf=\"form.controls.email.hasError('email')\"\u003e\n    Enter a valid e-mail\n  \u003c/mat-error\u003e\n\u003c/mat-form-field\u003e\n```\n\nWith the directive implemented in this demo app you can do this:\n\n```html\n\u003cmat-form-field\u003e\n  \u003cmat-label\u003eE-mail\u003c/mat-label\u003e\n  \u003cinput type=\"email\" matInput [formControl]=\"form.controls.email\" /\u003e\n  \u003cmat-error *hasError=\"'required'\"\u003eE-mail is required\u003c/mat-error\u003e\n  \u003cmat-error *hasError=\"'email'\"\u003eEnter a valid e-mail\u003c/mat-error\u003e\n\u003c/mat-form-field\u003e\n```\n\n[Read my blog post](http://sandroroth.com/blog/angular-reactive-forms-errors) for more information.\n\n---\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.4.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frothsandro%2Fng-reactive-forms-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frothsandro%2Fng-reactive-forms-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frothsandro%2Fng-reactive-forms-errors/lists"}