Search code examples
angularsyncfusion

Accordion data is not updating in angular application


I am using Syncfusion components in my angular application. I am unable to bind the updated data to the accordion component. Please find the example in below stackblitz link

Sample

In the above code if I click the change button data should be updated but empty data is showing in accordion. Kindly let me know how to resolve this issue.


Solution

  • you should use track by to Understand angular that data is changed.

    *ngFor = "let item of data1;trackBy:identify"
    
    identify(index,item){
      return this.count;
     }
    

    whatch this