You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// things: Observable<THING[]> // type of things is array of THING in class definition.
// in template <div *ngFor="let thing of things | async">
MeteorObservable.autorun().zone().subscribe(() => {
this.things = Things
.find({ someIdOfSubDocument: changedProp.currentValue._id })
.zone();
});
});
Only possible solution I found is below:
//things: THING[]; // type of things is array of THING in class definition.
// in template <div *ngFor="let thing of things">
MeteorObservable.autorun().zone().subscribe(() => {
Things
.find({ someIdOfSubDocument: changedProp.currentValue._id })
.zone()
.subscribe((quotes) => {
this.ngZone.run(() => {
this.things = quotes;
});
});
});
Why the things: Observable<THING[]> is not updating the view upon changes from the server, however, it is updating only on the new records.
The text was updated successfully, but these errors were encountered:
Not Working code:
Only possible solution I found is below:
Why the things: Observable<THING[]> is not updating the view upon changes from the server, however, it is updating only on the new records.
The text was updated successfully, but these errors were encountered: