I have a ternary statement in an Angular HTML template. But when the statement returns false, the data is not distributed to all 6 columns.
<td colspan="getNrOfColumnHeaders() ? 8 : 6">
{{(serverError ? 'SERVER_ERROR_TABLE_MSG' : 'NO_DATA') | translate}}
</td>
Anyone any idea what is going wrong?
getNrOfColumnHeaders() ? 8 : 6.