Getting error in Angular 5 Datatables: cannot reinitialise DataTable

前端 未结 4 2082
再見小時候
再見小時候 2021-01-05 10:00

I am working on the angular based project. I am using datatables to display data. When I try to do some modifications on the table, I get the following error.

DataT

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-05 10:19

    I solved this problem by removing the following code in *.ts file:

    dtOptions: DataTables.Settings = {};
     this.dtOptions = {
    };
    

提交回复
热议问题