I want to show a html element if array is null

I want to show a html element if array is null

<html-element *ngIf="!myArray"></html-element>

this will return true even if array is declared as

a=[];

user *ngIf="!arrayVarialbe.length"

1 Like