I am currently working on a unique "Presentation-Editor" tool where I can see all the presentations that have been created. For this overview, I want to showcase the first slide of each presentation as a preview.
However, there is a challenge because I only have the image URL stored in the "slides" array. The "presentations" array simply contains a list of slide IDs used in the presentation.
To solve this issue and filter out the background image, I attempted the following approach:
<div [ngStyle]="{'background-image': 'url('+(slides | filter : {'_id':'presentation.slides[0].slideid'}).imageurl+')'}">
My goal was to extract the URL by filtering the slides array based on the ID of the first slide in the presentation.
Since I need to show every presentation dynamically with this "preview slide," here's roughly what my HTML structure looks like at the moment:
<div *ngFor="let presentation of presentations">
// Includes the above div
</div>
It could be a syntax error or just too complex. Any suggestions on how I can address this problem?