I am passing a value from component like this
<component1 [height]="900"></component1>
of course value declared in .ts file as
@Input() height:number=0;
binding to div like this
<div style="height:{{height }}px;" ></div>
I will use this in another component like this
<component1 [height]="300"></component1>
Now, I'm having trouble using the *ngIf condition to determine whether the div height is bigger than zero.
<div style="height:{{height }}px;" *ngIf___________ ></div>
How any suggestions.
If I check the value *ngIf="{{height}}>0" the Angular application will crash.