C
C
colorkid2017-05-03 06:51:38
JavaScript
colorkid, 2017-05-03 06:51:38

How to pass data by AJAX to DATA of VUE JS instance?

Hello. There is a question about transferring data to a date from the server.
Here is an example https://jsfiddle.net/zsege1o9/
The data received from the server is written to the dataS variable. And they need to be passed to the data of this instance, or passed to the data src property of this instance. As I have not tried everything one does not transmit. Please tell me how to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Kulakov, 2017-05-03
@kulakoff Vue.js

this.src=dataS?

V
Vanik Khachatryan, 2018-04-01
@VaniXac

BeforeCreate doesn't have any of your functions because the component hasn't been created yet. Hence your methods are not yet initialized.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question