Skip to content

Instantly share code, notes, and snippets.

@ornerymoose
Last active March 5, 2020 18:15
Show Gist options
  • Save ornerymoose/a68c4531e7074731c938314a761dbba4 to your computer and use it in GitHub Desktop.
Save ornerymoose/a68c4531e7074731c938314a761dbba4 to your computer and use it in GitHub Desktop.
the <span> element correctly shows the ticket number. Given that ticket_number in data() is pointed at this.ticket_num, shouldn't I be able to console.log(this.ticket_number)? It currently returns undefined.
<template>
<template slot="row-details" slot-scope="row">
<span :ticket_num="row.item.ticket_number"></span>
</template>
</template>
<script>
export default {
name: 'MaintenanceDetailsTable',
props: ['ticket_num'],
data: function() {
ticket_number: this.ticket_num
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment