nui-form-for:优雅的 AngularJS 验证注入器

时间:2021-06-25 18:24:15
【文件属性】:
文件名称:nui-form-for:优雅的 AngularJS 验证注入器
文件大小:254KB
文件格式:ZIP
更新时间:2021-06-25 18:24:15
JavaScript 优雅的 AngularJS 表单验证注入器 这个怎么运作 此模块仅在未定义时从 JSON 对象优雅地注入 Angular 验证规则。 例如,验证规则为{minlength:1} , 这个输入 会变成 <input name="foo" /> <input name="foo" ng-minlength="1" ng-model="user.foo" /> <input name="foo" ng-minlength="20" /> <input name="foo" ng-minlength="20" ng-model="user.foo" /> 为什么是另一个验证器 github 中有很多表单验证模块,但是没有找到 100% 符合 AngularJS 语法的验证器。 所有这些都通过忽略 AngularJS 语法、 ng-minlength 、 min 、 max等使用自己的语法
【文件预览】:
nui-form-for-master
----package.json(1KB)
----gulpfile.js(2KB)
----app()
--------scripts()
----.gitignore(13B)
----demo()
--------advanced.html(142B)
--------user-rule.json(656B)
--------with-prefix.html(4KB)
--------app(7B)
--------lib()
--------simple.html(4KB)
--------simple-inline.html(3KB)
--------message.html(5KB)
----README.md(5KB)
----bower.json(469B)
----LICENSE.txt(1KB)
----build()
--------scripts()

网友评论