Answer the question
In order to leave comments, you need to log in
How to return Observable from Subscription?
There is a js class X with a loadMore method:
loadMore(): Subscription {
this.loadingSubscription = this.more().subscribe(res => {
this.objects.push.apply(this.objects, res.objects);
return this.objects;
}, er => {
});
return this.loadingSubscription;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question