Hello,
In ionic, when I try to delete an item in a sublist of listview, the template doesn’t refresh (the item is not deleted), however I can descry an animation (the item flashes).
I noticed that this only happens when I have BrowserAnimationsModule
present in my app.module
Here is my code (simplified) :
subitems = [0, 1, 2, 3];
<mbsc-listview>
<mbsc-listview-item>
<span>ITEM</span>
<mbsc-listview-sublist>
<mbsc-listview-item *ngFor="let subitem of subitems" (click)="subitems.splice(0, 1)">
{{subitem}}
</mbsc-listview-item>
</mbsc-listview-sublist>
</mbsc-listview-item>
</mbsc-listview>
Here are the versions of my package.json
"@angular/common": "9.0.6",
"@angular/core": "9.0.6",
"@angular/forms": "9.0.6",
"@angular/platform-browser": "9.0.6",
"@angular/platform-browser-dynamic": "9.0.6",
"@angular/router": "9.0.6",
"@ionic/angular": "4.11.1",
"@mobiscroll/angular": "4.10.2",
"typescript": "3.7.2"