Last active
March 5, 2020 18:15
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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