start_sf5_project_reboot/app/assets/vue/components/App.vue

22 lines
404 B
Vue
Raw Normal View History

2022-10-01 18:53:53 +00:00
<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>