0👍
I think this steps will help you to solve your problem:
-
If you want to show multiple person’s birthday, then you need the information of all persons. Create an array of persons like birthday.
person:[]
-
Create a for loop on modal.
<div class="modal fade" tabindex="-1" id="birthdayModal" role="dialog" v-for"person in persons">
------
</div>
- If there is a birthday of a person then fire it.
- [Vuejs]-How to return geolocation response object to be used in different components?
- [Vuejs]-Delete method with vue-tags-input Vue Js
0👍
I think the problem is this line:
this.birthday = result.data[0]
With this, you are always getting only one person’s data. Put your all persons data in a variable, like this.persons = result.data
. Then use v-for
to loop through them.
Source:stackexchange.com