Angular4 with webpack error
Adam6056 opened this issue · 1 comments
Adam6056 commented
Hello, i am trying to use your ng-table in Angular4 project
I can't even add it to my component:
package.json - > "ng-table": "^3.0.1"
When i add
import { NgTableParams } from 'ng-table';
into AppComponent(app.component.ts) everything its ok, but after that when i try to:
tableParams = new NgTableParams({}, { dataset: this.data});
i got this error:
error.txt
What am I doing wrong?
I didn't add anything into app.modules.ts and angular-cli.json - should I add something there?
staticallydynamic commented
Hey Adam -
This module is not meant for Angular (2 / 4), it was developed for the AngularJS framework version 1.X.X.
You may want to look at something like ng2-table