Angular DataTable not populating DTInstance

后端 未结 5 1483
抹茶落季
抹茶落季 2021-01-16 08:58

I am not getting my DtInstance populated after rendering. Anyone faced this issue.

<
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-16 09:22

    For me even vm.dtInstance = null; did not work. I ended up going throught the source of the directive and found that dt-instance can also be a setter function. That solved the problem for me.

    vm.setDTInstance = function(dtInst){
        vm.myTable = dtInst;
    };
    

提交回复
热议问题