Answer the question
In order to leave comments, you need to log in
Vue-js how to insert generated html component into index.html?
The situation is this.
There is an application on Vue-JS
There is a cartographic component on Leaflet with event handling. Inside the handler, the server is contacted and data is received:
map.on('draw:created', function (e) {
...
Vue.http.post('/dbdata', DataBody).then((response) => {
userContent.rasters_list = response; // putting JSON answer to Component data in userContent
console.log("Vue.rasters_list:");
console.log(userContent.rasters_list);
<ul v-for="img in rasters_list">
{{img.id}}
<input type="checkbox" /> Layer 5 <br>
<ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question