Replies: 1 comment
-
change.sort[0] and the .setSort() needs to be applied on the DataSource object .onChanged() is used. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 achange
as a DataSourceChangeEvent. How can I make this work please?Appreciate any hints or help.
Regards Sara
Beta Was this translation helpful? Give feedback.
All reactions