Hi all,
I have a little (actually big :)) with infinitescroll. If I want to use it to load more data from api it does’t work. But if I use only example from docs, it works well.
constructor() {
this.loadData();
}
doInfinite(){
console.log('Begin async operation');
}
loadData() {
this.api.callRequest('bar/bar', 'get', {}).subscribe(
(s) => {
console.log(s);
},
(e) => {
console.log("some error")
}
)
}
after this infinitescroll is not initialized.
Example from docs (after this infinitescroll is working):
loadData(loading) {
for (var i = 0; i < 30; i++) {
this.items.push(this.items.length);
}
}
What can be wrong on my code? Thanks