title: Vue.js getting an element within a component
body: <p>I have a component, how can I select one of its elements?</p>
  <p>I'm trying to get an input that is within this component's template.</p>
  <p>There could be multiple components so the <code>querySelector</code> must only parse the current instance of the component.</p>
  <pre class="lang-js prettyprint-override"><code>Vue.component('somecomponent', {
      template: '#somecomponent',
      props: [...],
  
     ...
  
      created: function() {
          somevariablehere.querySelector('input').focus();
      }
  });
  </code></pre>