2017-03-10 63 views

回答

0

不,没有。如果您只想获得第一个值,请执行以下操作:

const myBoolean; 

yourObservable$.first().subscribe(myBool => myBoolean = myBool);