Basic vue.js 2 and vue-resource http get with variable assignment
<p>I'm really struggling to get the most basic REST functionality to work in vue.js 2.</p>

<p>I'd like to get data from some endpoint and assign the returned value to a variable of my Vue instance. Here's how far I got.</p>

<pre><code>var link = 'https://jsonplaceholder.typicode.com/users';
var users;

Vue.http.get(link).then(function(response){
    users = response.data;
}, function(error){
    console.log(error.statusText);
});

new Vue ({
    el: '#user-list',
    data: {
        list: users
    }
});
</code></pre>

<p>Inside the promise, I can access the response data, but I cannot seem to assign it to users or even to data of the Vue instance.</p>

<p>Needless to say, I'm completely new to vue.js and thankful for any help.</p>

<p>Stack: vue.js 2.03, vue-resource 1.0.3</p>

<p>Cheers!</p>