smart-table / smart-table-ng

smart-table binding for angular >= 2
MIT License
9 stars 7 forks source link

Compatible with angular 8? #14

Open ganholete opened 4 years ago

ganholete commented 4 years ago

I made a copy of the users folder in stackblitz and updated my app.module to add the new references, but I'm getting some errors:

In <div id = "users-table" stTable # table = "stTable">

I get

There is no directive with "exportAs" set to "stTable"

In

const providers = [{
  provide: SmartTable,
  useFactory: (Users: UsersService, settings: TableState) => from(Users.fetchUsers(), settings),
  deps: [UsersService, DefaultSettingsService]
}];

I get

Error during template compile of 'UserListComponent' Could not resolve smart-table-ng relative to [object Object]

and

Function expressions are not supported in decorators Consider changing the function expression into an exported function

I'm starting in angular and couldn't find the error.

Deps: "@angular/animations": "~8.2.14", "@angular/cdk": "^8.2.3", "@angular/common": "~8.2.14", "@angular/compiler": "~8.2.14", "@angular/core": "~8.2.14", "@angular/forms": "~8.2.14", "@angular/material": "^8.2.3", "@angular/platform-browser": "~8.2.14", "@angular/platform-browser-dynamic": "~8.2.14", "@angular/router": "~8.2.14", "@brunoc/ngx-viacep": "^2.1.2", "@ng-select/ng-select": "^3.7.0", "bootstrap": "^4.4.1", "jwt-decode": "^2.2.0", "line-awesome": "^1.3.0", "moment": "^2.24.0", "ngx-bootstrap": "^5.2.0", "ngx-currency": "^2.2.1", "ngx-mask": "^8.1.7", "ngx-toastr": "^11.2.1", "ngx-webcam": "^0.2.6", "object-path": "^0.11.4", "rxjs": "~6.4.0", "smart-table-ng": "0.0.12", "tslib": "^1.10.0", "zone.js": "~0.9.1"

lorenzofox3 commented 4 years ago

It should be compatible with Angular 8. Can you please provide a running example of the problem you are facing. thanks