создать обьект юзера с ключами id name +добавить кнопку инфо около каждого юзера при клике на инфо - информация о человека
мой код
+++++++++++++++++
<div id="app">
<ul>
<li v-for="person in persons">{{this.person}}</li>
<button v-show="btn"
@click="clickInfo">Show information</button>
</ul>
</div>
<script src="
https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
new Vue({
el: '#app',
methods: {
create() {
var persons= {
id:
this.id,
name:
this.name,
email:
this.email,
website:
this.website }
}
},
methods: {
clickInfo: function () {
btn: false;
console.log(this.persons);
}
},
data() {
return {
btn: true,
id: '11',
name: 'Yark',
email: 'yark.studio98@y.com',
website: '
google.com'
}
}
})
</script>