So i have the following ng-repeat
:
<th ng-repeat="field in tableFields" translate="{{field.headerTitle | translate}}"
ts-criteria="{{field.sortable ? field.fieldKey : null}}">
<label class="i-checks" ng-if="field.isCheckbox">
<input type="checkbox" ng-model="checkAll" ng-change="selectAll(checkAll)">
<i></i>
</label>
</th>
This works fine however due to some errors in an external script the ts-criteria
should not be set if field.fieldKey is null
. So my question is how can i remove the attribute completely?