Skip to content

Instantly share code, notes, and snippets.

@andreipfeiffer
Last active February 15, 2017 17:44
Show Gist options
  • Save andreipfeiffer/7ca80f396f72d8b6ac4caca4ad13313f to your computer and use it in GitHub Desktop.
Save andreipfeiffer/7ca80f396f72d8b6ac4caca4ad13313f to your computer and use it in GitHub Desktop.
Vue.component('User', {
template: '<span>{{ fullName }}</span>',
props: ['firstName', 'lastName'],
computed: {
fullName() {
return this.firstName + ' ' + this.lastName;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment