nativescript-angular
nativescript-angular copied to clipboard
iOS RadListView binding is not update when data is pushed from other component
Environment
NativeScript Playground Tested on iPhone 12 Pro iOS 14.4
Describe the bug
I'm binding RadListView items with array items inside ItemService at HomeComponent.
Then, I push data to array items from HomeComponent and RadListView item is update properly.
But if I navigate to other component ItemComponent, push data to array items
and then navigate back to HomeComponent using this.routerExtension.back({ relativeTo: this.activatedRoute }) RadListView item is not update while other binding is update properly (such as count is update properly)
Please see a sample project for more details.
To Reproduce
- Try add item from
HomeComponent, the RadListView update properly - Navigate to
ItemComponentthen click "Add" button. Now item is pushed to array and automatically navigate back - RadListView inside
HomeComponentis not update properly
Expected behavior
RadListView should update when items is pushed or delete in other component and navigate back
Sample project
https://play.nativescript.org/?template=play-ng&id=Ts9bSH&v=1
Additional context
Example GIF for the issue.
