Using Http module outside of Vue?
See original GitHub issueIs 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:
- Created 7 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Im sorry, not yet. I will keep this in mind for a future version.
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?