Created
February 2, 2018 19:22
-
-
Save matthieu-D/83a90efeb6a06f23d873a8fa54f6bb0b to your computer and use it in GitHub Desktop.
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
import Vue from 'vue'; | |
export default Vue.extend({ | |
props: { | |
name: String | |
}, | |
methods: { | |
changeName: function ({ target: { value } }) { | |
this.$emit('nameChanged', value); | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment