title: How to call method from div in vue
body: <p>I have a div and I just want to render it on a condition, I also want to call the method if the condition comes true here is my code</p>
  <pre><code> &lt;div v-if=&quot;timetable === null&quot; &quot;mymethodhere&quot;&gt;
        &lt;h4&gt;no data found&lt;/h4&gt;
   &lt;/div&gt;
  </code></pre>