Angular 13 support
See original GitHub issue🚀 Feature request
Is your feature request related to a problem? Please describe.
With Angular 13 out, this project should support it.
Describe the solution you’d like
Support Angular 13 and RxJS 7.
Describe alternatives you’ve considered
Upgrading the parent project to Angular 13 and RxJS 7 breaks the dtTrigger
mechanism:
ERROR Error: Uncaught (in promise): Both the table and dtOptions cannot be empty
One possible cause is this. RxJS now requires a value for any non void
Subject
s. The official example shows such behaviour, although it’s also not typed, which is required in strict environments. However the latest version of this library uses Subject<ADTSettings>
, and this simply using this.dtTrigger.next({});
solves the RxJS compatibility issue in terms of the IDE not giving error, however after such change, the above error is produced at runtime.
The current workaround is to not use dtTrigger
at all, in which case the library works with Angular 13 (at least in my app) without any obvious problems.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Hi @alexaka1
Thank you for the detailed explanation of the problem.
Angular 13 support will be added in the next few days.
Could you try
this.dtTrigger.next(this.dtOptions)
and see if it works?Glad you got it sorted.