Search code examples
angularngx-bootstrapngx-datatable

Can't bind to 'rows' since it isn't a known property of 'ngx-datatable'


I followed this link but wherever I add NgxDatatableModule, I just getting this.

Below is the criterias I already have tried.

Added into app.module.ts not work

then added to shared.module not worked

then page.module not worked

All time just getting

Can't bind to 'rows' since it isn't a known property of 'ngx-datatable'.

and interesting part is when before ngx-datatable , I installed ngx-bootstrap then same error occuring with ngx-bootstrap properties.


Solution

  • Might template reference variable needed so Try defining instance of datatable with

    @ViewChild('firstTable') myTable: DatatableComponent;
    

    referred from NGX-Datatables. How to get current table instance?