In my table, I have 5 days of the week displayed using an ng-repeat for each day. Additionally, there is a button on the page that fills all inputs with data retrieved from the backend.
Here is a snippet of my code:
<thead>
<tr>
<th>Days</th>
</tr>
</thead>
<tbody>
<tr>
<td ng-repeat="day in days">
<input type="text" ng-model="day.start" ng-disabled="item.date > currentDate"
</td>
</tr>
</tbody>
There's also a button with an ng-click="someFunction()" which triggers a REST API method GET to populate the ng-repeat element with data retrieved from the backend.
The issue arises when certain days are disabled due to it being the current week. For example, if it's Wednesday and Thursday and Friday are disabled, clicking the button populates all 5 inputs instead of just Monday, Tuesday, and Wednesday like intended.
I would appreciate any suggestions or solutions you may have!