Home Ask Login Register

Developers Planet

Your answer is one click away!

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>


How would i validate forms separately that are dynamically generated?


beaver February 2016

Have you checked these posts?

Post Status

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


Leave an answer

Quote of the day: live life