This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
|
<template>
|
|
<h2>{{ userName }}</h2>
|
|
<h3>{{ age }}</h3>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: ['firstName', 'lastName', 'age'],
|
|
computed: {
|
|
userName() {
|
|
return this.firstName + ' ' + this.lastName;
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style></style>
|