{"id":16387603,"url":"https://github.com/bitnbytesio/ng-forms","last_synced_at":"2025-09-18T08:42:19.880Z","repository":{"id":88916761,"uuid":"60066035","full_name":"bitnbytesio/ng-forms","owner":"bitnbytesio","description":"Form Handler for angular js","archived":false,"fork":false,"pushed_at":"2017-06-30T08:52:34.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T14:54:06.979Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitnbytesio.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,"zenodo":null}},"created_at":"2016-05-31T07:06:16.000Z","updated_at":"2017-03-10T06:11:36.000Z","dependencies_parsed_at":"2023-06-13T03:30:24.733Z","dependency_job_id":null,"html_url":"https://github.com/bitnbytesio/ng-forms","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bitnbytesio/ng-forms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnbytesio%2Fng-forms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnbytesio%2Fng-forms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnbytesio%2Fng-forms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnbytesio%2Fng-forms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitnbytesio","download_url":"https://codeload.github.com/bitnbytesio/ng-forms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnbytesio%2Fng-forms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275737832,"owners_count":25519405,"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","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T04:26:58.502Z","updated_at":"2025-09-18T08:42:19.872Z","avatar_url":"https://github.com/bitnbytesio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-forms\nForm Handler for angular js\n\n# Requirements\n\nangular 1.6\n\n** Note: for angular 1.5 switch to version 1.3 branch\n\n# Usage\n\n```javascript\nvar myApp = angular.module('myApp', ['ngRoute', 'ngForms']);\n```\n\n```javascript\n\n$scope.form = {};\n\n$scope.signin = $ngForm.create({\n\n        url: 'login',\n        method: 'post',\n        scope: $scope, \n        path: 'form',\n        multipart: false // optional, make it true in case of file upload\n\n    }, {\n\n        success: function (o) {\n\n        }\n\n    });\n    \n\n```\n\n```html\n  \u003cform class=\"login-form\"\u003e\n      \u003ch1\u003eLogin to your account\u003c/h1\u003e\n\n      \u003cdiv  uib-alert  close=\"dismiss()\"  ng-hide=\"form.response.alert.class == undefined\" class=\"alert alert-{{form.response.alert.class}}\"\u003e{{form.response.alert.text}}\u003c/div\u003e\n        \n      \u003cdiv class=\"form-group\" ng-class=\"{'has-error': form.response.hasError('email')}\"\u003e\n              \u003clabel for=\"inputEmail\" class=\"sr-only\"\u003eUsername or Email\u003c/label\u003e\n              \u003cinput  ng-model=\"form.username\" type=\"text\" id=\"inputEmail\" class=\"form-control\" placeholder=\"Username or Email\" required autofocus\u003e\n              \u003cdiv class=\"help-block\"\u003e{{form.response.error('email')}}\u003c/div\u003e\n      \u003c/div\u003e\n      \n      \u003cdiv class=\"form-group\" ng-class=\"{'has-error': form.response.hasError('email')}\"\u003e\n              \u003clabel for=\"inputPassword\" class=\"sr-only\"\u003ePassword\u003c/label\u003e\n              \u003cinput  ng-model=\"form.password\" type=\"password\" id=\"inputPassword\" class=\"form-control\" placeholder=\"Password\" required\u003e\n              \u003cdiv class=\"help-block\"\u003e{{form.response.error('email')}}\u003c/div\u003e\n      \u003cdiv\u003e\n      \u003cdiv class=\"checkbox\"\u003e\n        \u003clabel\u003e\n          \u003cinput type=\"checkbox\" value=\"remember-me\" ng-model=\"form.remember\"\u003e Remember me\n        \u003c/label\u003e\n      \u003c/div\u003e\n      \u003cbutton class=\"btn btn-primary btn-block\" type=\"submit\"  ng-click=\"signin.handle()\"\u003eSign in\u003c/button\u003e\n    \u003c/form\u003e\n```\n\n**ng-forms is built especially for laravel developers**\n\n```php\n\n// Laravel validations\n$validation = Validator::make($request-\u003eall(), $rules);\n\nif ($validation-\u003efails()) {\n\treturn ['success' =\u003e false, 'errors' =\u003e $validation-\u003eerrors()];\n}\n```\n\n**Note: dismiss function will hide alert. directly bind to some button or use in angular-ui close attribute**\n\n**Ver:1.2**\n- 2 functions added for error handling (hasError() and error() in server response object)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitnbytesio%2Fng-forms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitnbytesio%2Fng-forms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitnbytesio%2Fng-forms/lists"}