make the contact list dynamic

This commit is contained in:
Andreas Zweili 2021-01-25 23:03:45 +01:00
parent 81a2636d88
commit 00f3bb1150
1 changed files with 5 additions and 9 deletions

View File

@ -3,15 +3,11 @@
<header><h1>My Friends</h1></header> <header><h1>My Friends</h1></header>
<ul> <ul>
<friend-contact <friend-contact
name="Manuel Lorenz" v-for="friend in friends"
email-address="manuel@localhost.com" :key="friend.id"
phone-number="0123 4567 890" :name="friend.name"
is-favorite="1" :email-address="friend.email"
></friend-contact> :phone-number="friend.phone"
<friend-contact
name="Julie Jones"
email-address="julie@localhost.com"
phone-number="0123 4567 890"
></friend-contact> ></friend-contact>
</ul> </ul>
</div> </div>