I want to validate a element which is genegrated by ng-repeat at script section
<form name="form">
<div ng-repeat=".......">
    <input type="text" name="test{{$index}}"/>
    <input type="button" ng-click="Check($index)"/>
</div> 
</form>
<script>
var Check = function Check(index) {
    //How can i check this element valid 
    //All i want to do like this: $scope.form.test{{index}}.$valid
   //It doesn't understand $scope.form.test{{index}}.$valid
    if ($scope.form.test{{index}}.$valid) 
    { 
        //do something
    }
}
</script>
Can anyones help me. Thanks
 
    