title: accessing vue js object in javascript
body: <p>In a Laravel blade template I can access some data using @{{list.length}}.</p>
  
  <pre><code>&lt;template id="events-template"&gt;
        @{{list.length}}
  &lt;/template&gt;
  </code></pre>
  
  <p>How do I use this within a javascript function within the same view template?</p>
  
  <p>Vue is defined in app.js as </p>
  
  <pre><code>var vm = new Vue({
      el: 'body',
  
  });
  </code></pre>
  
  <p>app.js is called before the script in my view template</p>