ng2-select2-demo icon indicating copy to clipboard operation
ng2-select2-demo copied to clipboard

Select2 data is not getting updated on Dynamic loading.

Open kanchansingh1123 opened this issue 7 years ago • 1 comments

Data is loading at the very first time with async pipe. After reloading the API dataset is not getting reflected to select2.

kanchansingh1123 avatar Jun 27 '17 10:06 kanchansingh1123

There is no direct method to clear/update the new values in UI.. but by clearing the "data" to empty array and reassign the values make trick.

this.data = []; this.data = this.actualData; //from your server this.selectedData = data.selectedData //from your server (here your new values get updated in select2 UI)

universaljegan avatar Nov 13 '21 17:11 universaljegan