Skip to content

Instantly share code, notes, and snippets.

@bmfteixeira
Created October 5, 2017 17:56
Show Gist options
  • Save bmfteixeira/63c7d4e23addff4d71a8bea5b46395db to your computer and use it in GitHub Desktop.
Save bmfteixeira/63c7d4e23addff4d71a8bea5b46395db to your computer and use it in GitHub Desktop.
<template>
<div></div>
</template>
<script type="text/javascript">
export default {
props: {
propId: {
type: Number,
required: true
}
},
methods: {
consoleLogValue(value) {
console.log(value)
}
},
watch: {
propId (newVal) {
this.consoleLogValue(newVal)
}
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment