title: using ngIf to check array length or content to display div
body: <p>I would like to control whether to display my div or not depending on the length of the data array. if there is data go ahead and show the div and if not then just hide it. I am using *ngIf but i wanted to ask about two different ways and if one is better than the other and maybe why. </p>
  
  <pre><code>*ngIf="dataArray?"
  </code></pre>
  
  <p>or</p>
  
  <pre><code>*ngIf="dataArray?.length &gt; 0"
  </code></pre>