esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

Angular4 with webpack error #1014

Open Adam6056 opened 7 years ago

Adam6056 commented 7 years ago

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 7 years ago

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