Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Build Your First Vue.js App > Lesson 29

AJAX call for products

Now that we've got Vue Resource in our project, we're ready to go ahead and make an AJAX call to our server and retrieve some proper poster objects.

In the onSubmit function, we're now going to use Vue Resource to make a GET request.

Note that we can access Vue Resrouce from the context object as the property $http.

So let's delete the console log and type this.$http.get() to do a GET request.

onSubmit: function() {
  this.$http.get();
}

Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom