If you set the values array when the angular controller inits, everything works smoothly, but if you change the array by requesting the values from an API, the table doesn't render again.
If you request the values from an API, the pivot table doesn't render again. To fix this issue I added deep comparison in both $watch and also I added an extra parameter to the pivotUI method to render the table again.
If you set the values array when the angular controller inits, everything works smoothly, but if you change the array by requesting the values from an API, the table doesn't render again. If you request the values from an API, the pivot table doesn't render again. To fix this issue I added deep comparison in both $watch and also I added an extra parameter to the pivotUI method to render the table again.