To use ngx-datatable in your project, you must import NgxDatatableModule from @swimlane/ngx-datatable and add it to the imports array of your @NgModule (typically in app.module.ts).
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [NgxDatatableModule, BrowserModule],
bootstrap: [AppComponent]
})
export class AppModule {}