I have a VueJS component, now I'm getting from JSON response which I want to export into a html select box.
My VueJS method:
getTaskList() {
axios.get('/api/v1/tasklist').then(response => {
this.taskList = this.data.taskList;
});
}
I found example in VueJS documentation but there is still the problem with method...
How can I export this response into a selectbox, I know how to work with v-for, but I don't know exactly how to initialize this data in HTML (with v-bind, or something like that)?
/api/v1/tasklist?