Answer the question
In order to leave comments, you need to log in
How to get Observable from outside?
In general, there is such code:
getLastVersionData(assemblyId: number) {
return this.getLastVersion(assemblyId).subscribe(result => {
var version = <Version>result;
return this.getFileByVersion(version.id);
});
}
Answer the question
In order to leave comments, you need to log in
you have to write
this.getLastVersion(assemblyId).flatMap(result => {
var version = <Version>result;
return this.getFileByVersion(version.id);
}).subscribe(result=>{});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question