get the length of an array in angular code example Example: length array angular {{ cols?.length || '0' }}