我试图将名为articles
的可观察Feed传递给子组件,但我一直在丢失该流。我有一个父组件,它将一个observable提供给子组件,如下所示:
<app-section-article-wrapper [articles]="articles$ | async" *ngFor="let section of sections$ | async" [section]="section"></app-section-article-wrapper>
通过从选择框中选择过滤器来更新可观察的Feed。我间歇性地丢失了子组件中的文章,它们只是显示为null。我的子组件只是接受它们作为输入:
@Input() articles
有人可以提供建议吗?