How can I load [images] galleryImages from a database (eg Firebase)?
windcloak opened this issue · comments
I want to get my image urls from a document in Firebase instead of hard-coding it in my TS file.
Documentation Example
<ngx-gallery [options]="galleryOptions" [images]="galleryImages"></ngx-gallery>
I've tried this
<ngx-gallery [options]="galleryOptions" [images]="(model | async)?.imgGalleryUrls"></ngx-gallery>
I thought it worked, but then I noticed all my non-array references got broken as a result (this does not show, for example). It's working before I added the ngx-gallery code.
<h2>Tutorial: How to Make {{ (model | async)?.name }}</h2>
Anyway, I don't think I'm using [images] correctly. Any ideas on how it should be done?