Reputation: 465
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.
Upvotes: 4
Views: 3034
Reputation: 380
You need to import "NgxDatatableModule" in your app-module and add it in the imports.
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [NgxDatatableModule],
providers: [],
bootstrap: [AppComponent]
})
Upvotes: 3
Reputation: 1247
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?
Upvotes: 2