title: Call vue.js function in html to print value in p tag
body: <p><strong>About</strong></p>
  
  <p>I am using Vue.js Template with Laravel 5.8.</p>
  
  <p>I am trying to call a vue.js function to show the value which will be returned by function in p tag</p>
  
  <p><strong>Error Details</strong></p>
  
  <p>Invalid Expression: Missing ) after the argument list. I want to show 1 in p tag. Am I missing anything?</p>
  
  <p>Actually there is some complex data in the thread object and due to that I need to pass function to retrieve value and display it.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>&lt;template&gt;
      &lt;div&gt;
          &lt;div v-for="Thread in Threads"&gt;
              &lt;p&gt;{{ getName(Thread); }}&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
      export default {
          data() {
              return { 
                  Threads: []
              }
          },
          methods: {           
              getName(Thread) {
                  return 1;
              }
          }
      }
  &lt;/script&gt;
  </code></pre>