Answer the question
In order to leave comments, you need to log in
How to display usernames on the page?
Just started learning how to work with vue.
I'm trying to reproduce the functionality of ajax requests https://jsfiddle.net/L1jr5j1g/
1) Do I understand correctly that vue itself does not know how to ajax and you need to connect vue-resource? (which is done)
2) How can I get and display just any text that the requested page gives me in order to understand that at least something works
3) I have a browser plugin for vue debug, then debug: true inside data and everything is silent, the console in the code inspector for this case does not show any errors and warnings.
Answer the question
In order to leave comments, you need to log in
Do I understand correctly that vue itself does not know how to use ajax and it is necessary to connect vue-resource?
request: function() {
this.$http.get('http://jsonplaceholder.typicode.com/users')
.then(response => {
this.users = response.body;
});
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question