{"id":16493357,"url":"https://github.com/thesharpieone/angular-submit-validation","last_synced_at":"2025-10-27T21:30:51.006Z","repository":{"id":12501310,"uuid":"15170907","full_name":"TheSharpieOne/angular-submit-validation","owner":"TheSharpieOne","description":"Validates the form on form submission (setting the right classes and properties)","archived":false,"fork":false,"pushed_at":"2016-05-23T17:50:01.000Z","size":3,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T08:24:57.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"inwicast/claroline-plugin-bundle","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheSharpieOne.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":"2013-12-13T18:32:11.000Z","updated_at":"2023-03-10T09:44:32.000Z","dependencies_parsed_at":"2022-07-21T12:48:15.178Z","dependency_job_id":null,"html_url":"https://github.com/TheSharpieOne/angular-submit-validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSharpieOne%2Fangular-submit-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSharpieOne%2Fangular-submit-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSharpieOne%2Fangular-submit-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSharpieOne%2Fangular-submit-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheSharpieOne","download_url":"https://codeload.github.com/TheSharpieOne/angular-submit-validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238560781,"owners_count":19492594,"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":[],"created_at":"2024-10-11T14:09:19.408Z","updated_at":"2025-10-27T21:30:50.654Z","avatar_url":"https://github.com/TheSharpieOne.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-submit-validation\n=======================\n\nValidates the form on form submission.  It will set the classes and properties that would normally be set when a field is validated by angular.\n\nUsage:\n------\nThis directive based on the normal HTML ```\u003cform\u003e``` element. The form needs a `name` attribute. Just make sure the directive is loaded and it will attach to all ```\u003cform\u003e```s.\n\n```html\n\u003cform name=\"myForm\" ng-submit=\"myFormHandler(myVar)\" novalidate=\"novalidate\"\u003e\n    \u003cinput ng-model=\"myVar\" required=\"required\"\u003e\n    \u003cinput type=\"submit\" value=\"Go!\"\u003e\n\u003c/form\u003e\n```\n```novalidate``` will disable the browser’s native validation, you probably don't want the native validation to happen.\n\n\n\nNote:\nThis does prevent the submission of the form if it is invalid!  You can use the `allowInvalidSubmission` attribute to allow the submission of (triggering of `ngSubmit` with invalid values). If `ngSubmit` returns a promise, the form will not be allowed to submit again until the promise is resolved/rejected (works great if you return a call to `$http` for ajax submissions). The `$submitting` proprty on the form (would be `myForm.$submitting` in the example above) will be true while the promise is pending, which is useful for showing a loading indicator.\nThis will trigger the validation of all of the inputs in all of the [nested] forms (use `ngForm` to nest for browser compatibility).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesharpieone%2Fangular-submit-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesharpieone%2Fangular-submit-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesharpieone%2Fangular-submit-validation/lists"}