[Vuejs]-How do you pass an ID to a function that will use that ID to query data

0👍

try Implicit Binding, that’s much more better

0👍

I think you missed a slash on after 'api/loadData'.It could be

loadStudentData(id) {
    this.form.show('api/loadData/' + id).then(({data}) => (this.studentsData = data));
}

However, you did not publish your routes here.

Leave a comment