0👍
I don’t understand what is the purpose with Vue here, but you if you want to make an http request you can do it with vue-axios package and assign the result of your http request to reactive property
- [Vuejs]-How to send data from html (Django backend) to js (Vue frontend)
- [Vuejs]-How to invoke component method from store.js
0👍
So, I found how to do :
var request = require('sync-request');
var res = request('POST', 'http://MyAPIIP/connect?mail='+this.model.email+'&pass='+this.model.password);
reponse = String(JSON.parse(res.body)[0]['rep']);
console.log(reponse);
- [Vuejs]-How to determine which part of the page I'm on in order to reflect that on my navigation bar?
- [Vuejs]-Populate Dynamic Input Box with existing Data VueJs
Source:stackexchange.com