title: Run vue component only if element loaded
body: <p>I have a small vue.js component defined on a javascript.</p>
  
  <p>Is any elegant way to instance the vue component only when the element is loaded?</p>
  
  <p>The issue is I am receiving these warnings in other htmls where the element is not present:</p>
  
  <pre><code>vue.js:485 [Vue warn]: Cannot find element: #item
  </code></pre>
  
  <p>Because it's running this js everywhere</p>
  
  <pre><code>  new Vue({
      el: '#item',
    });
  </code></pre>
  
  <p>How is it taken care of in vue.js?</p>