You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use other than static array for carousel items - I hooked up an observable of an array via an async pipe, but the behavior is strange.
Reproduction (I tried to cut the scenario to a very basic one): https://stackblitz.com/edit/ngu-carousel-observable-data-source
Observable in the scenario above:
this.carouselTileItems$ = interval(1000)
.pipe(
startWith(-1),
take(10),
map(i => [i, i + 1, i + 2])
);
Only the last carousel tile is updated with new observed item. Moreover checking the page DOM, there are many <ngu-tile>s created as the observable keeps serving new values (but to a user the carousel always appears to contain only 3 tiles):
Am I doing anything wrong? Did I forget any config?
The text was updated successfully, but these errors were encountered:
I tried to use other than static array for carousel items - I hooked up an observable of an array via an async pipe, but the behavior is strange.
Reproduction (I tried to cut the scenario to a very basic one):
https://stackblitz.com/edit/ngu-carousel-observable-data-source
Observable in the scenario above:
Only the last carousel tile is updated with new observed item. Moreover checking the page DOM, there are many
<ngu-tile>
s created as the observable keeps serving new values (but to a user the carousel always appears to contain only 3 tiles):Am I doing anything wrong? Did I forget any config?
The text was updated successfully, but these errors were encountered: