Trying to get image from firestorage, how can I add absolute path before slide.path
or how can I check path and embed it in this.slide
in component file
html
<div class="media text-muted pt-3 pb-3 border-bottom" *ngFor="let slide of slides">
<img [src]="slide.path" class="bd-placeholder-img mr-2 rounded" width="100" height="100" />
<p class="media-body mb-0 small lh-125 border-gray">
<strong class="d-block text-gray-dark">{{ slide.name }}</strong>
</p>
</div>
component
this.serv.getSlides().subscribe( res => {
this.slides = res.map(item => {
return {
id: item.payload.doc.id,
...item.payload.doc.data()
} as Slides;
});
console.log(this.slides);
});
Firstore