Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created February 2, 2018 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/83a90efeb6a06f23d873a8fa54f6bb0b to your computer and use it in GitHub Desktop.
Save matthieu-D/83a90efeb6a06f23d873a8fa54f6bb0b to your computer and use it in GitHub Desktop.
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