How to call vue instance outside it in Javascript
<p>How can I call the test vue in javascript? Here is my code, I want to call test when I do something in javascript function.</p>

<pre><code>function clickit() {
   this.test.fetchTestData();    
}

var test = new Vue({
    el: '#viewport',
    data: {
        test_data: []
    },

    mounted: function () {
        this.fetchTestData();
    },

    methods: {
        fetchTestData: function () {
            $.get(test.json, function (data) {
                this.test_data = data;
               alert(this.test_data.isActive);
            });
        }
    }
});
</code></pre>