Here is an example where I am attempting to call a method from the template and pass in some arguments. How can I access those arguments from within the method?
Snippet from script:
methods: {
showBinaries(job, id) {
let test_url = process.env.VUE_APP_TEST_APP + "/api/v1/job=this.job&id=this.id"
// How can I correctly access job and build_id here?
}
}
Snippet from template:
<template v-for='job in new_jobs'>
<span @click='showBinaries(job.name, job.id)'><li>Job ID is: {{ job.id }}</li></span>
<ul v-if="showIosMasterBinaries===job.id">
<li>Test 1</li>
<li>Test 2</li>
</ul>
</template>