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
0 answers

Vuex - right way to return a actions answer to the component

I have a code which works perfectly fine but I have a question inside my head! Is that code well written? I am not that good with JavaScript but I start to learning few months ago and I am also studying good practices to keep my code clean and…
Gustavo Bissolli
  • 1,551
  • 3
  • 22
  • 36
0
votes
2 answers

Vuejs ajax GET request not returning data in Laravel 5.1 Blade template

am trying to retrieve data from a database using vuejs ajax call with a plugin called vue-resource. Unfortunately, the json data object contains the html page and not the actual data from the database. Can someone please tell me what am doing…
Adwin
  • 195
  • 2
  • 6
  • 21
0
votes
2 answers

Passing vue-resource AJAX data around

I'm using Vue resource, and trying to make an AJAX call based on the (supposedly-bound) data that came from a previous AJAX call. I'm trying to bind the data from a call to /me to the userDetails prop (seems to work OK), and pass the userDetails.id…
0
votes
1 answer

How to vueJs filtering in on-click

My code :
  • In source - Jhon
  • Out source -…
  • b4dQuetions
    • 1,549
    • 6
    • 18
    • 28
    0
    votes
    1 answer

    Component scope in Vue.js

    I have been learning Vue.js recently and struggling to understand the concept of component scope. From what I have understood from the example on the documentation, the child component will only work inside of a parent component. …
    Hyder B.
    • 10,900
    • 5
    • 51
    • 60
    -1
    votes
    1 answer

    Making Get request to Yammer API works using Postman tool but not with Vue-Resource

    I am trying to integrate Yammer API in my Vue.JS project, for Http calls I am using Vue-Resource plugin. While making GET Http call to get posts from Yammer it gives me following error - Response to preflight request doesn't pass access control…
    -1
    votes
    2 answers

    HTTP request blocked by CORS for not having Access-Control-Allow-Origin header but the header is present

    I am using Python with Flask and have created a REST api, I need my Vue app to interact with it and get data, but I get No 'Access-Control-Allow-Origin' header is present. I am adding that header from nginx (so i can proxy the API as development…
    Sid Sun
    • 61
    • 1
    • 6
    -1
    votes
    2 answers

    Vue js making server call using vue-resource

    I'm trying to figure out how to make the below server call using vue-resource. I not quite sure how to set the header and send data using Vue.$http.post jQuery.ajax({ url: "http://url/", type: "POST", headers: { "Content-Type":…
    shan
    • 78
    • 2
    • 9
    -1
    votes
    2 answers

    Vue.js in laravel does not return GET request with Ajax

    I'm trying to create a laravel app with a Vue.js to call a controller response, I've tried it with ajax alone and it works, but with Vue the GET method seems not working, there are also no error code for me to debug. here is my…
    Deo
    • 681
    • 1
    • 6
    • 15
    -1
    votes
    2 answers

    v-for insert second v-for child

    I have 2 tables in JSON containing the following. First table: [    {"Id": "1", "name": "Joe"}, {"Id": "2", "name": "Mark"} ] Second table: [ {"Student": "1", "note": "5", "assessment": "1"}, {"Student": "1", "note": "6", "assessment":…
    -1
    votes
    1 answer

    vue-resource response body null laravel

    I have some projects built with Laravel (laravel/framework v5.3.24) and Vue ^2.0.1. I ran composer update which updated laravel/framework to v5.3.26. Strangely after this update, my Vue components, using vue-resource (^1.0.3) started to have…
    AshMenhennett
    • 1,095
    • 4
    • 14
    • 25
    -1
    votes
    1 answer

    pagination with filter in vueJs

    I have found code in here v-for="rowinvitation in viewListInvitation | sourceInvitation | limitBy count offset" but I found error, when I click last page & I find in page one, he is error. for ex: I have click page 9 in pagination & I find "Kathy".…
    b4dQuetions
    • 1,549
    • 6
    • 18
    • 28
    -2
    votes
    1 answer

    How to show and hide rows in v-data-table Vue.js + Vuetify

    I'm new at Vue developer and I make a V-Data-Table consuming a JSON with vue-resource. That´s done already, but now I want to show/hide child rows based on user selection. e.g.: click on '+' and the table shows the rows, click on '-'and the table…
    Mateus Fernando
    • 99
    • 1
    • 4
    • 11
    1 2 3
    26
    27