Last active
February 15, 2017 17:44
-
-
Save andreipfeiffer/7ca80f396f72d8b6ac4caca4ad13313f 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
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