fix(common): properly update collection reference in NgForOf (#24684)
closes #24155 PR Close #24684
This commit is contained in:
@ -182,6 +182,7 @@ export class NgForOf<T> implements DoCheck {
|
||||
const viewRef = <EmbeddedViewRef<NgForOfContext<T>>>this._viewContainer.get(i);
|
||||
viewRef.context.index = i;
|
||||
viewRef.context.count = ilen;
|
||||
viewRef.context.ngForOf = this._ngForOf;
|
||||
}
|
||||
|
||||
changes.forEachIdentityChange((record: any) => {
|
||||
|
Reference in New Issue
Block a user