【发布时间】:2022-01-17 07:18:36
【问题描述】:
我有一个页面聊天,与用户与上次消息日期聊天的不同人。
来自 firebase 的 getFunction 也可以工作,我可以在控制台中看到带有正确信息的新数组,但是在 html 页面中,我需要更改视图并返回以获得正确的信息,我有测试 changeDetection 但它不起作用,我已经测试了 ngzone.run() 它可以工作但有延迟..;
this.usersList.push({user:resulta.data(),message:resultaa.data()});
html
<ng-container *ngFor="let usr of usersList">
【问题讨论】:
标签: angular ionic-framework ngfor