Skip to content

Instantly share code, notes, and snippets.

@hanhan1978
Created May 21, 2017 21:50
Show Gist options
  • Save hanhan1978/452d8f8f0c1caf1a780da3ac78a34974 to your computer and use it in GitHub Desktop.
Save hanhan1978/452d8f8f0c1caf1a780da3ac78a34974 to your computer and use it in GitHub Desktop.
<template>
<div class="links">
<a v-on:click="doSomething">{{title}}</a>
</div>
</template>
<script>
export default {
props: ['data_id', 'title'],
methods: {
doSomething: function() {
console.log(this.data_id)
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment