在这种情况下,当我禁用“已创建”状态的按钮时,它会禁用所有行的相同按钮,我只需要为状态“已创建”禁用。
<tbody>
<tr ng-repeat="row in ReconciledateLimit">
<td ng-class="{'changeColorG':cell === 'uploaded', 'changeColorR':cell === 'uploadFailed','changeColorYY':cell === 'created' , 'changeColorY':cell === 'validated','changeColorR':cell === 'validationFailed'}"
style="word-wrap:break-word;
font-size: 13px;
text-align: center"
ng-repeat="cell in row track by $index">
{{cell}}
</td>
<td style="text-align: center;font-size: 11px">
<button style="width: 100%; margin-bottom: 5%;" title="Create File"
ng-disabled="'row.FileStatus === created'"
ng-click="createFile_Request({jobCarrierName : row.Carrier})"><strong>Create</strong></button>
</td>
</tr>
</tbody>
答案 0 :(得分:0)
您的报价不正确:
ng-disabled="'row.FileStatus === created'"
字符串'row.FileStatus === created'
始终是真实的,因此所有行都被禁用。
你想:
ng-disabled="row.FileStatus === 'created'"
实际进行比较。