YK
Size: a a a
YK
DB
YK
DB
YK
DB
YK
YK
YK
DB
YK
DB
private results = this.form.valueChanges.pipe(switchMap(params => this.newResults(params)))
newResults(params) {
return this.scrolled.pipe(
startWith(0),
mergeMap(() => this.request(params, page)),
scan((acc, response) => acc.concat(response), [])
)
}
YK
YK
YK
DB
YK
YK
private results = this.form.valueChanges.pipe(switchMap(params => this.newResults(params)))
newResults(params) {
return this.scrolled.pipe(
startWith(0),
mergeMap(() => this.request(params, page)),
scan((acc, response) => acc.concat(response), [])
)
}
DB
YK