Angular 不点火

Angular 不点火,angular,rxjs,Angular,Rxjs,我试过这样做,但没有进入console.log中的任何内容。请帮帮我 private someVar: Observable<any>; this.someVar = combineLatest( this.someService.todos, ); this.someVar.subscribe(([todos]) => { console.log(todos); } private-someVar:可观察; this.someVar=combinelatete

我试过这样做,但没有进入console.log中的任何内容。请帮帮我

private someVar: Observable<any>;

this.someVar = combineLatest(
   this.someService.todos,
);

this.someVar.subscribe(([todos]) => {
  console.log(todos);
}
private-someVar:可观察;
this.someVar=combinelatetest(
this.someService.todos,
);
this.someVar.subscribe([todos])=>{
控制台日志(todos);
}

您确定要更新
this.someService.todos
中的数据吗?这意味着至少有一个todos从未发出过。@JBNizet是正确的,一个
组合相关测试
可观察对象只会在所有内部可观察对象发出至少一次后才发出。您要寻找的行为是什么?假设
this.someService.todos
是一个可观察的数组,您可以执行
.pipe(点击(=>{debugger;})
.pipe(点击(=>{console.log('x fired');})
来查看哪一个可观察的对象不发射。