22 lines
404 B
Vue
22 lines
404 B
Vue
|
<template>
|
||
|
<div id="boum">
|
||
|
<div>hello <b>{{ username }}</b></div>
|
||
|
<div><b>{{ age }}</b> ans</div>
|
||
|
<input v-model="username">
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'app',
|
||
|
props: ['dataset'],
|
||
|
data() {
|
||
|
return {
|
||
|
user: this.dataset.user,
|
||
|
username: this.dataset.user.username,
|
||
|
age: this.dataset.user.age,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|