Here is my ng-repeat
code snippet:
<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>
Everything works fine, but I need to remove the ts-criteria
attribute if field.fieldKey
is null due to errors in an external script. How can I completely remove this attribute?