angular-eha.unique:验证两个模型值是否唯一

时间:2021-06-05 07:59:54
【文件属性】:
文件名称:angular-eha.unique:验证两个模型值是否唯一
文件大小:13KB
文件格式:ZIP
更新时间:2021-06-05 07:59:54
JavaScript angular-eha.unique 验证两个模型值是否唯一 用法 将模型值与给定对象的属性进行比较。 < input name =" id " ng-model =" first.id " eha-unique =" second " eha-unique-property =" id " > 如果first.id === second.id ,则id输入将被标记为无效。 安装 使用 npm 安装: npm install --save angular-eha.unique 或者凉亭: bower install --save angular-eha.unique 然后只需将eha.unique添加为项目中某个eha.unique的依赖项,您就可以开始了。 执照 版权所有 2015 汤姆·文森特 根据 Apache 许可,版本 2.0(“许可”)获得许可
【文件预览】:
angular-eha.unique-master
----.travis.yml(2KB)
----package.json(1KB)
----.vimrc(93B)
----tests()
--------unit()
----LICENSE(10KB)
----CONTRIBUTING.md(433B)
----Gruntfile.js(2KB)
----src()
--------index.js(247B)
--------unique.directive.js(1KB)
----.npmignore(6B)
----.gitignore(26B)
----karma.conf.js(2KB)
----README.md(1KB)
----scripts()
--------bower-deploy.sh(685B)
----bower.json(537B)
----.editorconfig(386B)
----.gitattributes(12B)

网友评论