{"id":17857142,"url":"https://github.com/caferrari/md-form-validator","last_synced_at":"2025-06-17T04:39:28.850Z","repository":{"id":58234881,"uuid":"51913758","full_name":"caferrari/md-form-validator","owner":"caferrari","description":"Simplify the usage of ngMessages with the angular material design","archived":false,"fork":false,"pushed_at":"2017-04-28T16:51:23.000Z","size":35,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T19:06:56.027Z","etag":null,"topics":["angular-material","angularjs","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/caferrari.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}},"created_at":"2016-02-17T10:15:50.000Z","updated_at":"2020-10-21T14:30:46.000Z","dependencies_parsed_at":"2022-08-31T09:21:17.521Z","dependency_job_id":null,"html_url":"https://github.com/caferrari/md-form-validator","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/caferrari/md-form-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2Fmd-form-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2Fmd-form-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2Fmd-form-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2Fmd-form-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caferrari","download_url":"https://codeload.github.com/caferrari/md-form-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2Fmd-form-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260294188,"owners_count":22987600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-material","angularjs","javascript"],"created_at":"2024-10-28T03:11:30.135Z","updated_at":"2025-06-17T04:39:28.829Z","avatar_url":"https://github.com/caferrari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Angular Material Design Form Validator\n======================================\n\nA collection of directives that simplify the form validation with the Angular Material Design\n\n[Demo](http://codepen.io/caferrari/pen/zrQBvY?editors=1010)\n\nHow to install\n--------------\n\n`bower install --save md-form-validator`\n\nConfig Default Messages\n-----------------------\n\n\n```javascript\nangular.module(\"myApp\").config(function(mdFormValidatorProvider) {\n    mdFormValidatorProvider.setMessage(\"required\", \"This field is required\");\n    mdFormValidatorProvider.setMessage(\"maxlength\", \"Please enter no more than {maxlength} characters\");\n}]);\n```\n\n**With default messages you don´t need to add a md-message() for each validation:**\n\nBefore:\n```html\n\u003cmd-input-container\u003e\n  \u003clabel\u003eCódigo\u003c/label\u003e\n  \u003cinput ng-model=\"code\" name=\"code\" required/\u003e\n  \u003cmd-messages\u003e\n    \u003cmd-message required\u003eRequired\u003c/md-message\u003e\n  \u003c/md-messages\u003e\n\u003c/md-input-container\u003e\n```\nAfter default messages:\n```html\n\u003cmd-input-container\u003e\n  \u003clabel\u003eCódigo\u003c/label\u003e\n  \u003cinput ng-model=\"code\" name=\"code\" required/\u003e\n  \u003cmd-messages /\u003e\n\u003c/md-input-container\u003e\n```\nTo override the message:\n```html\n\u003cmd-input-container\u003e\n  \u003clabel\u003eCódigo\u003c/label\u003e\n  \u003cinput ng-model=\"code\" name=\"code\" required/\u003e\n  \u003cmd-messages\u003e\n    \u003cmd-message required\u003e\n      This is my cool required message for this field\n    \u003c/md-message\u003e\n  \u003c/md-messages\u003e\n\u003c/md-input-container\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaferrari%2Fmd-form-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaferrari%2Fmd-form-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaferrari%2Fmd-form-validator/lists"}