I have an Angular 9 App and having trouble in calling the method renderRows() in angular material table. The error says renderRows is undefined.
This is my import
import {MatTable} from '@angular/material/table';
My ViewChild
@ViewChild(MatTable) table: MatTable<any>;
And the function when deleting row
delete(row: any) {
this.table.renderRows();
}
Please let me know if I miss something. Thanks