question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Http module outside of Vue?

See original GitHub issue

Is there any way to use just vue-resource in a project only to take advantage of the HTTP client? It’s by far the nicest API I’ve worked with when it comes to making AJAX requests and seems pretty lightweight.

My use case is working on a little non-UI related library that needs to make a couple AJAX calls, and shockingly the best thing out there it seems is fetch, which is awful! 😃 Would love if it was possible to import just the HTTP module from vue-resource and use that instead.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
steffanscommented, Aug 16, 2016

Im sorry, not yet. I will keep this in mind for a future version.

0reactions
kristianmandrupcommented, Oct 2, 2016

Good to know thanks. I agree regarding a more intuitive developer oriented API 😉 Perhaps the API though could optionally be made to wrap the native Fetch API if present in the browser and fallback to good old XMLHttpRequest if not?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue - Cannot use import statement outside a module
You're trying to use an import statement in a normal script tag, you can only do that with type="module" but I suspect you...
Read more >
Make HTTP Requests to Remote Web Services in a ...
Learn how to make HTTP requests to remote web services and APIs in an Android and iOS application built with NativeScript and the...
Read more >
Use objects outside VUE - Laracasts
Hello, I was wondering how to use objects outside VUE. For example, from my Script.vue I want to access an object, how do...
Read more >
How to Make Secure HTTP Requests with Vue and Express
TL;DR: In this article, you're going to build an Express API and then make API calls to it from an existing Vue.js application....
Read more >
Building external modules in VueJS - Pusher Blog
image for the form validation with vuejs tutorial. VueJS is one of the most popular JavaScript frameworks out there and for good reason....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found