Im creating a "Presentation-Editor" and in this editor i have an overview of all the presentations created. In the overview i want to display the first slide of each presentation as a preview.
The problem is that i only store the image url in the "slides" array. The "presentations" array is just a list of the the slides id's used in the presentation.
So in order to filter the background image from all that out i tried this:
<div [ngStyle]="{'background-image': 'url('+(slides | filter : {'_id':'presentation.slides[0].slideid'}).imageurl+')'}">
I wanted to filter the slides array for the id of the first slide of the presentation and then get the url from that slide.
Since i want to display every presentation, i have to display this "preview slide" dynamically, so this is what my html roughly looks like rn
<div *ngFor="let presentation of presentations">
// The div from above
</div>
Maybe its a syntax error or its just too much ^^, Do you guys have an idea on how to solve my problem?