I'm facing an issue with a form that is nested inside an ng-repeat directive. The form should only be enabled if a specific field (in this case a select dropdown) is selected, but for some reason, it's not working as expected. Can anyone provide a solution to fix this problem?
<form name="myForm">
<div ng-repeat="item in data">
<select ng-model="name" required ng-options="r.id as r.name for r in list">
<option value="">--Select---</option>
</select>
<button class="button" ng-click="save()" ng-disabled="myForm.$invalid">Save</button>
</div>
</form>