Hello everyone,
I have a file structure like this in my app:
assets
slides
slides_01
01_01.jpg
01_02.jpg
slides_02
02_01.jpg
02_02.jpg
02_03.jpg
... etc
Now lets say I have a SlidesPage that loads some data, and needs to load the slides from the folder slide_01 folder.
What is the better solution?
1 . hardcode the images in the slide json file and then generate ion-slide from the slides array:
{
title: "Lorem Ipsum",
content: "Lorem Ipsum",
slides:[
"01_01.jpg",
"01_02.jpg"
]
}
2 . Search the sliders folder by slider index and lookup the pictures inside, save the names in an array and the generate then ion-slides. (If yes, any idea on how to do that?)
Basically I have a lot of pictures to organize for a point of interest app so looking for the best direction to do so.