Questions tagged [vue-resource]

An HTTP client plugin for Vue.js to manage web requests and responses using XMLHttpRequests or JSONP

vue-resource

vue-resource is an HTTP client plugin for Vue.js to manage web requests and responses using XMLHttpRequests or JSONP.

Features of the plugin (see README):

  • Supports the Promise API and URI Templates
  • Supports interceptors for request and response
  • Supports latest Firefox, Chrome, Safari, Opera and IE9+
  • Supports Vue 1.0 & Vue 2.0
  • Compact size 14KB (5.3KB gzipped)

vue-resource is no longer part of the official recommendation list from Vue, Though it still functions as intended and is usable.

"Potential reasons to migrate away include maintenance, universal/isomorphic support and more advanced features. - Vue JS Core Team

Resources

Related Tags

403 questions
0
votes
1 answer

Access nested objects in API using vue resource

I'm just starting out with vue resource (and ajax in general) and I'm having trouble listing an array that's nested in my API. If this is my sample JSON: { "item1" : "data", "item2" : 1234, "item3" : 5678, "item6" : "data", "item7" : [ { …
Mr.Richway
  • 141
  • 2
  • 15
0
votes
1 answer

Vue component not displaying data

Am having this issue of my component not displaying data even when I do `@{{ $data | json }}. Below is the code am working with app.js import Vue from 'vue'; import VueResource from 'vue-resource'; import Project from…
ammezie
  • 355
  • 5
  • 20
0
votes
2 answers

Using Vue in Laravel project

working on a project in Laravel and I want to integrate Vue and Vue Resource into it. I have setup it up but it is not working as expected. Below is my code: routes.php Route::get('api/projects', function() { return…
ammezie
  • 355
  • 5
  • 20
0
votes
0 answers

Vue + Socket.io + RethinkDB - Basic CRUD operations in realtime

Starting to use Vue + Rethink, love the concepts of both of them and am starting to create a simple todo list. I've got a skeleton app done with Vue + Express + RethinkDB working properly with CRD (no update yet) operations. Everything is dandy, but…
Pat
  • 225
  • 3
  • 11
0
votes
1 answer

Reference/Use property in other options of the same Vue component

I am using vue-resource to perform CRUD on resources e.g. article tags. For CUD, I need to send a csrf token along with data. My server side code accepts a custom HTTP header 'X-CSRF-TOKEN' and check its value. I make a tag component for each entry…
Carter
  • 1,230
  • 13
  • 24
0
votes
2 answers

Wordpress setcookie with AJAX

Firstly, I haven't seen any answers to similar questions that have sorted this. If you find one that already exists, please let me know. Simple AJAX request that sets a cookie to store a timer expiry, the damn cookie isn't being set and I cannot…
ggdx
  • 3,024
  • 4
  • 32
  • 48
0
votes
2 answers

Passing data from parent component to a child component

I have a parent component as follows