Hi, I am new to Vue, and here is the warning I get: Success method is deprecated. Use the then method instead.
And here is the code:
apiURL = 'api/movies';
new Vue({
el: '#app',
data: {
'movies': ''
},
ready: function() {
this.getMovies();
},
methods: {
getMovies: function() {
this.$http.get(apiURL, function(movies) {
this.$set('movies', movies);
});
}
}
});
Is this also the right method for this kind of thing?
source
share