{"id":23119733,"url":"https://github.com/alisabzevari/ngval","last_synced_at":"2025-10-04T08:41:41.246Z","repository":{"id":12008719,"uuid":"14589352","full_name":"alisabzevari/ngval","owner":"alisabzevari","description":"ASP.NET MVC validation for AngularJS","archived":false,"fork":false,"pushed_at":"2015-03-04T07:36:23.000Z","size":2171,"stargazers_count":27,"open_issues_count":3,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-02T03:25:51.541Z","etag":null,"topics":["angularjs","angularjs1","aspnet-mvc","validation"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alisabzevari.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-11-21T14:13:47.000Z","updated_at":"2020-06-03T21:23:14.000Z","dependencies_parsed_at":"2022-09-01T14:52:07.769Z","dependency_job_id":null,"html_url":"https://github.com/alisabzevari/ngval","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alisabzevari/ngval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisabzevari%2Fngval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisabzevari%2Fngval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisabzevari%2Fngval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisabzevari%2Fngval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alisabzevari","download_url":"https://codeload.github.com/alisabzevari/ngval/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisabzevari%2Fngval/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278289047,"owners_count":25962347,"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-10-04T02:00:05.491Z","response_time":63,"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":["angularjs","angularjs1","aspnet-mvc","validation"],"created_at":"2024-12-17T05:40:52.238Z","updated_at":"2025-10-04T08:41:41.221Z","avatar_url":"https://github.com/alisabzevari.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"ngval\n=====\n\nASP.NET MVC validation for AngularJS.\n## Getting Started\n1.Add data anotations to your entities\n\n```c#\npublic class TestEntity\n{\n    [Required]\n    public string RequiredProperty { get; set; }\n\n    [StringLength(10)]\n    public string Length10Property { get; set; }\n\n    [Required]\n    [StringLength(10)]\n    public string MultipleValidationProperty { get; set; }\n}\n```\n2.Reference ngval.js to your page\n\n```html\n\u003cscript src=\"~/Scripts/ngval.js\"\u003e\u003c/script\u003e\n```\n\n3.Add ngval module to your app module dependencies\n\n```javascript\nvar App = angular.module('App', ['ngval']);\n```\n\n4.Use NgValFor Html helper method to insert angularjs directives for validation. It will also add native angularjs directives. And you can use ngval object for error messages and more.\n\n```html\n\u003cform name=\"testForm\" novalidate ng-submit=\"submit()\"\u003e\n    \u003cinput type=\"text\" name=\"username\" ng-model=\"user.name\" @Html.NgValFor(u =\u003e u.RequiredProperty) /\u003e\n    {{testForm.username.ngval.hasError}}\n    \u003cdiv ng-repeat=\"err in testForm.username.ngval.errors\"\u003e\n        \u003cspan\u003e{{err.message}}\u003c/span\u003e\n        \u003cbr /\u003e\n    \u003c/div\u003e\n    \u003cinput type=\"submit\" /\u003e\n\u003c/form\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falisabzevari%2Fngval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falisabzevari%2Fngval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falisabzevari%2Fngval/lists"}