Destroy and re-create the grid, with different rowData (Vanilla JS, Angular)
The following example shows the use of gridOptions.api.destroy() to destroy the current grid, and then re-assign it to create a new one. For the purpose of example, the new grid will be created with an alternate row data.
Vanilla JS (v24.1)
Class-based components: https://plnkr.co/edit/3nf7nytLIAeWaE15