title: Call component function from html view in Vue
body: <p>I'm stuck in -maybe- logic usage of Vue, I have a &quot;list&quot; component which get results from ajax, the problem appears when I want to add a search field, I have something like this:</p>
  <p>search.vue</p>
  <pre><code>&lt;template&gt;
    &lt;div&gt;
      &lt;div v-for=&quot;(result, index) in results&quot;&gt;
        &lt;h2&gt;{{ result.name }}&lt;/h2&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
    export default {
      name : 'searchList',
  
      data() {
        return { results: [] }
      }
  
      created: function(){
        this.goSearch();
      },
  
      methods : {
        goSearch : function(){
          this.results = axios.get('/search');
        }
      }
    }
  &lt;/script&gt;
  </code></pre>
  <p>This works like a charm, the point is that I want to add an input to search, I've made some research and I've found that the only way to get this is using another component, but I don't want to create another component just for an input, so I want to do something like:</p>
  <p>index.html</p>
  <pre><code>&lt;input type=&quot;text&quot; v-model=&quot;goSearch&quot;&gt;
  
  &lt;search-list&gt;&lt;/search-list&gt;
  </code></pre>
  <p>But the problem that I'm facing is that Vue is returning an error:</p>
  <pre><code>[Vue warn]: Property or method &quot;goSearch&quot; is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
  </code></pre>
  <p>I've also tried with <code>v-bind=&quot;goSearch&quot;</code> but doesn't work either. Any ideas to accomplish this?</p>
  <p><strong>UPDATE:</strong>
  I've created a button to call the function:</p>
  <pre><code>&lt;button @click=&quot;goSearch&quot;&gt;&lt;/button&gt;
  </code></pre>
  <p>The function &quot;goSearch&quot; now tries to get the value from the text box, but also this doesn't work.</p>