title: How use v-if with array length
body: <p>I want to show a div if the array length is more than <code>0</code>. I used it below.</p>
  <p>HTML:</p>
  <pre><code>&lt;div v-if=&quot;countfunc &gt; 0&quot;&gt;
    &lt;div v-for=&quot;nhp in countfunc&quot;&gt;
       &lt;p v-text=&quot;nhp.code&quot;&gt;&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Vue:</p>
  <pre><code>computed: {
     countfunc: function(){
       //this return a js array
     }
  }
  </code></pre>
  <p>How can I solve my problem?</p>