You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2021. It is now read-only.
I am learning Angular and trying to implement a data table in my project and get the following error:
ERROR in node_modules/angular5-data-table/datatable.module.d.ts:14:23 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s)
Version:
![image](https://user-images.githubusercontent.com/72387931/95072933-a4827a00-0729-11eb-930f-1d8aca3f5b6f.png)
my HTML looks like:
`<data-table
[items]="items"
[itemCount]="itemCount"
(reload)="reloadItems($event)"
`
The data is populated but sorting is not working, even the icons are not visible for next previous etc.
app module looks like:
`import { DataTableModule } from 'angular5-data-table';
@NgModule({
declarations: [
AppComponent,
BsNavBarComponent,
HomeComponent,
ProductsComponent,
ShoppingCartComponent,
CheckoutComponent,
OrderSuccessComponent,
MyOrdersComponent,
AdmProductsComponent,
AdmOrdersComponent,
LoginComponent,
ProductFormComponent
],
imports: [
FormsModule,
CustomFormsModule,
BrowserModule,
AppRoutingModule,
AngularFireModule.initializeApp(environment.firebase),
AngularFireDatabaseModule,
AngularFireAuthModule,
NgbModule,
DataTableModule.forRoot(),`
The text was updated successfully, but these errors were encountered: