My website features a small form that allows users to submit new photos and view previously submitted photos. Users begin by selecting an album for the photo and then uploading it. Currently, I am encountering an issue in retrieving photos based on the selected album. Here is an example of the code:
<select v-model="newPhoto.album">
<option value="">Select Album</option>
<option v-for="album in albums" :value="album['.key']">{{album.name}}</option>
</select>
<ul>
<li v-for="img in album">{{img.name}}</li>
</ul>
In order to correctly display images within the selected album, nesting the UL inside the option is not feasible due to my page's structure. How can I pass the correct album data to iterate through the images? The data structure is organized as follows:
-Album Firebase ID
images
-Photo Firebase ID
src:
name: