Using external js library within vue.js app
<p>I am trying to use an external JS library that generates a drawing canvas (atrament.js) within a vue.js app.</p>

<p>I am not sure what is the right way of doing this. Right now I am just doing:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    var main = new Vue({
        el: '#vueapp'
    });
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var atr = atrament("canvas", 500, 500);&lt;/script&gt;
</code></pre>

<p>And with that the canvas is generated wherever I put the <code>&lt;canvas&gt;&lt;/canvas&gt;</code> tags.</p>

<p>However, this does not seem a very elegant option, and the <code>atr</code> var is not accessible for the vue app, for example for clearing the canvas. So, which is the right way of doing this?</p>