I am trying to evaluate the below in template syntax which is an array:
FAIL {{ cols.length }}
I get the below error.
platfo
Try defining the cols variable as an object list on .ts archive cols: object[];
.ts
cols: object[]
If you want to print 0 for an empty array use the ternary operator:
{{ cols ? cols.length : '0' }}