Aktywne Wpisy

MonazoPL +87
Ruszamy z nowym #rozdajo – wygraj kartę podarunkową do Allegro o wartości 100 zł!
Aby wziąć udział w konkursie, zaplusuj ten wpis oraz w komentarzu krótko odpowiedz na pytanie konkursowe: Jeśli wygrasz, na co wydasz (lub do czego dołożysz) to 100 zł? ( ͡~ ͜ʖ ͡°)
––––––––––––––––––––––––––––––
Aby wziąć udział w konkursie, zaplusuj ten wpis oraz w komentarzu krótko odpowiedz na pytanie konkursowe: Jeśli wygrasz, na co wydasz (lub do czego dołożysz) to 100 zł? ( ͡~ ͜ʖ ͡°)
––––––––––––––––––––––––––––––
źródło: AirPods 4 Citi
Pobierz
Traczex +151
Dobra skończyłem. 3 lata, dużo pracy ale już mieszkam. Dzięki za porady na tagu #budujzwykopem Powodzenia Mirki.
źródło: scaled_1000021155
Pobierz


Co robię źlę? Podpowiecie? ;)
items$: Observable;
page = 1;
pageSize = 20;
isLoading = true;
constructor(private itemsService: ItemsService) { }
ngOnInit() {
this.items$ = getItems();
}
onScroll() {
this.page++;
this.items$ = combineLatest([
this.items$,
this.getItems()
])
.pipe(
map(([currentItems, newItems] => [...currentItems, ...newItems ]))
)
}
private getItems() {
return this.itemsService
.getItems({ page: this.page, pageSize: this.pageSize })
.pipe(
map((res) => res.items)
);
}
#angular #angularjs