との約束の振る舞いは、私は以下のような機能をチェーンすることができます?エミュレート「は、」約束してRxJS
var p = promiseFactory('1');
p.then(function(data){
/*Do something*/
return promiseFactory('2');
}).then(function(data){
/*Do something else*/
return value;
}).catch(function(err){
/*Here I can catch all exceptions threw in then methods*/
});
は、私がそうであれば、どのようRxJSと観察可能で、この動作をレンダリングすることはできますか?
'.flatMap'を使用できます。実際には、解決したい問題に依存します。 –