angularjs ng-repeat下验证问题
angularjs验证要求name唯一,repeat情况,name 等通过${index}等绑定,也无法获取值
通过ng-from的方法,这样验证name重复也可以了。
<ng-form name="urlForm">
<input type="url" name="socialUrl" ng-model="social.url">
<span class="alert error" ng-show="urlForm.socialUrl.$error.url">URL error</span>
</ng-form>
https://docs.angularjs.org/api/ng/directive/ngForm
http://blog.csdn.net/yangjvn/article/details/47452369