Replies: 1 comment
|
change.sort[0] and the .setSort() needs to be applied on the DataSource object .onChanged() is used. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I am facing some issues with the breaking changes coming along with an Angular 16 upgrade.
How can I handle these errors please?
error TS2339: Property 'sortConf' does not exist on type 'DataSourceChangeEvent'.const currentDirection = change.sortConf[0].direction;Error TS2339: Property 'setSort' does not exist on type 'DataSourceChangeEvent'.change.setSort([{ ... }]);The
onChanged().subscribe((change) => {returns achangeas a DataSourceChangeEvent. How can I make this work please?Appreciate any hints or help.
Regards Sara
All reactions