-
Notifications
You must be signed in to change notification settings - Fork 489
datatables for angular4 #998
Comments
For now I pulled the .module.ts and directive.ts from the source on Github into my own module in my code and it works fine. |
@illiniguy |
Just add a copy of the .directive.ts and .module.ts files to your project. Found here (for master): https://github.com/l-lin/angular-datatables/tree/master/src Then import that local module file instead of the angular-datatables one. Works for me until they upgrade to support v4. |
@illiniguy |
You need to add the typings of
|
Yep, apologies. I already had references to those libraries in my project, the latter before trying this library. |
I released the version 4.0.0. |
Set it up just now. Seems to be working great. Thanks for the update! |
I still get the error.
|
I honestly don't know why it does not work... With
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DataTablesModule } from 'angular-datatables';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
DataTablesModule.forRoot()
],
providers: [],
bootstrap: [ AppComponent ]
})
export class AppModule {} |
Thanks for the response.
Otherwise, all I can do to fix is to roll back to the pre-4.0.0 version My
|
Using angular-cli 1.0.0 and angular 4.0.3 seem to work for me. Check the package.json of my demo. |
I also experienced the same thing, after reading this issue my program can run by adding forRoot on the DataTablesModule |
i had the same issue, then i added DataTablesModule.forRoot() to my module, and fixed the issue |
Using DataTablesModule.forRoot() fixed my issue. Overloaded Thanks 👍 |
Added forRoot() to line 18 of angular-datatables.module.js. Compiles now. |
Before you write your question, please take some extra time to write a good title that is short yet descriptive.
What versions you are using?
What's the problem?
Error encountered resolving symbol values statically.Calling function 'makeDecorator',
angular-datatables/node_modules/@angular/core/src/metadata/ng_module.d.ts
Can you share your code?
The text was updated successfully, but these errors were encountered: