Matt Price February 2016

Validating angularjs forms created within ng-repeat

I am dynamically creating multiple forms using ng-repeat, and i need to validate each one independently but it seems that I cannot dynamically set a form name and then validate it dynamically.

<div ng-repeat="quote in quotes" ng-form="quote{{$index}}" novalidate>

  <div ng-if="quote$index.$invalid">INVALID</div>

</div> 

How would i validate forms separately that are dynamically generated?

Answers


beaver February 2016

Have you checked these posts?

Post Status

Asked in February 2016
Viewed 3,408 times
Voted 12
Answered 1 times

Search




Leave an answer