I have a table with 5 days of the week which is an `ng-repeat` for each day and I have a button somewhere on the page who populates all inputs with some data coming from the backend.

This is 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>

```

And I have a button with an `ng-click="someFunction()"` which is a `REST API` method `GET` and from backend it will populate my repeater.

The problem is in the current week page when let's say it's wednesday, thursday and friday are disabled but when I click my button it will populate all my 5 `inputs` from `ng-repeat` with data and I only want to populate monday, tuesday and wednesday if the rest of the days are disabled by `ng-disabled`.

Do you guys have any suggestions?