vue-resource Questions

31

I started using vue dev-tools in my application but it is not visible when in developer mode in Chrome. I tried various solutions found on the dev-tools github page and in other places on the web, ...
Marquesan asked 6/1, 2017 at 11:53

3

Solved

I have a Vue application generated with webpack-simple option. I am trying to make a GET request to https://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en but I get the err...
Dewain asked 28/5, 2017 at 21:53

4

Solved

In my Vue.js application I want to have some global functions. For example a callApi() function which I can call every time I need access to my data. What is the best way to include these function...
Bouchier asked 7/9, 2016 at 14:47

16

Solved

I'm trying to understand how to properly watch for some prop variation. I have a parent component (.vue files) that receive data from an ajax call, put the data inside an object and use it to rende...
Temple asked 9/2, 2017 at 10:16

4

Solved

Consider this: this.$root.$router.push({ path: '/dashboard', params: { errors: 'error' }, query: { test: 'test' } }) I use this in my component to redirect to another URL, and some error ha...
Sepaloid asked 18/11, 2016 at 15:27

3

I am making kind of game in which I want user to enter a particular word and then I want to check if the particular word is pressed. If the word is pressed I will fetch the next word. Currently I a...
Sententious asked 27/10, 2016 at 11:23

5

I'm using: Vue 2.0.3 vue-router 2.0.1 vuex 0.8.2 vue-resource 0.7.0 And after trying to login to my page when using remote API, not the locally run one, I get cors error like following vue-res...
Collectivize asked 29/11, 2016 at 10:25

3

I'm sure this one's gonna be extremely easy for you guys. I am trying to make a simple list of posts with the post titles always visible, and when you click a specific post in the list, you get the...
Bedad asked 29/9, 2016 at 19:39

6

I'm attempting to watch for localstorage: Template: <p>token - {{token}}</p> Script: computed: { token() { return localStorage.getItem('token'); } } But it doesn't change, w...
Ancilla asked 23/3, 2017 at 11:2

5

Solved

Before I was getting movie detail from the component's script. The function first check whether the movie ID of the store is same as of the route's param movie ID. If its same then don't get the mo...
Graniah asked 2/3, 2017 at 16:6

3

Solved

I have a number of post requests in my app. Some of them have to have and extrace header with token I'm not sure how to append it So far my code is like this. I'm checking if there is a token and ...
Penniepenniless asked 3/8, 2018 at 6:10

2

Solved

I have challenged myself to write an app that fetches data from API and displays it in various components. I am pretty new to VueJS. I use VueResource for hitting the API and VueX for state managem...
Rochkind asked 3/10, 2018 at 18:42

1

Solved

I'm using vue-resource to fetch data from the server. A user needs to have a JWT token to get the correct data. If the token is invalid or expired, a 401 status is returned. If the user tries to ac...
Clabber asked 5/4, 2017 at 23:22

4

Solved

I'd like to know how before I render a page, I want to send an async GET request to my server to retrieve data and populate the properties in data. I heard the best way to do this is to call the fu...
Henn asked 30/3, 2018 at 15:51

2

Solved

I'm using Vue Resource to retrieve an images collection from a REST API. The request is sent in the created hook of my Vue component. The problem is, I'm trying to access the retrieved data in th...
Lynching asked 8/12, 2017 at 15:32

1

I am new to VueJS and want to re-write part of my plain Javascript SPA with Vue JS now (just for training and learning). I created my project with Vue-CLI. And here is a part of my file structure n...
Bobolink asked 13/6, 2018 at 9:12

2

I'm trying to use the webpack-dev-server proxy configuration to send api requests to an external domain and I can't seem to get it working. Here's my config: var path = require('path') module.e...
Gyronny asked 5/4, 2016 at 14:0

1

After I loop through the data in the front-end with Vue I am able to display the images but I do not know how to download it. I want to be able to click on either the image or a button in other to ...
Overeat asked 10/4, 2018 at 5:35

2

Solved

I have data : 1,2,3,4,4,5 & my code like this: <div id="looping" v-for="display in editlistAssesments"> {{display.test_id}} </div> My code if in php such as like this $temp_id ...
Siltstone asked 4/3, 2016 at 2:57

1

Solved

I have a Vue Webpack app with Vuex (I am new to both, coming in from the Ember world). I've currently got it setup to use vue-resource with two files like this: /src/store/api.js import Vue from ...
Ymir asked 29/1, 2018 at 15:56

1

Solved

I recently started learning vue.js and currently using vue.js with vue-simple-webpack template , express and mongo to develop a simple application . I am using localhost to develop and test the app...
Sclerophyll asked 17/10, 2017 at 14:9

1

Solved

I have a pagination component built with Vue 1, for which I am receiving data from Laravel pagination: <template> <div class="row"> <div class="col-md-8"> <div v-if="zeroVi...
Lorsung asked 25/8, 2017 at 15:2

2

Solved

I am trying to set up a Vuejs fronted application (vue-cli webpack template) to sit on top of my Laravel API. I am able to get a successful response from the API with vue-resource by providing the...
Gnathonic asked 23/9, 2016 at 16:12

1

Solved

I started using Typescript and trying to apply it to my project. However, I can't get Vue.js plugins like vue-resource to work with it. When I use this.$http.post() I get the error: error TS...
Cringe asked 18/6, 2017 at 13:22

1

Solved

I have a problem with vue-resource causing a Provisional headers are shown on Chrome, using jQuery on the other hand work without any problem The problem only happens with Chrome + vue-resource Re...
Nettles asked 5/5, 2017 at 11:15

© 2022 - 2025 — McMap. All rights reserved.