When using *ngFor to render a component multiple times, the components rendered are not updating in DOM as expected.
Rendering the component in an ionic page:
<ion-row *ngFor="let file of files; let i = index">
<app-add-file (fileEvent)="fileEventHandler(i, $event)"></app-add-file> //component
</ion-row>
components appear as expected, but when something changes in the component, the change doesn't reflect in the DOM.
Is there a way to force the rerender?
Should I use ChangeDetectorRef inside the component?
Versions:
"@ionic/angular": "^4.7.1",
"@angular/common": "^7.2.2",
would love to provide more data if needed. Thanks!