Hi All. 

I have problem with 'unobtrusive validation and AngularJS ng-repeat'

attr data-val-required ignored

<ul class="list-unstyled">
        <li ng-repeat="ing in rec.Ings">
            <div class="row form-group">
                <div class="col-md-6" style="line-height: 37px">
                    <span ng-bind="ing.Text"></span>
                </div>
                <div class="col-md-5">
                    <div class="input-group">
                        <input name="Ing{{$index}}" type="text" 
ng-model="ing.Count" class="form-control" data-val="true" 
data-val-required="required" required="">
                    </div>
                    <span class="text-danger field-validation-valid" 
data-valmsg-for="Ing{{$index}}" data-valmsg-replace="true"></span>
                </div>
            </div>
        </li>
</ul>

I want validate form with unobtrusive validate and have issue with 
'data-val-required='required'. i see default 'This field is required.' 
instead my 'required'

Someone use unobtrusive validation with AngularJS? 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to