I'm not trying to troubleshoot the sorting 'mechanism' in the controller, it's purely the fact that it's not showing up. To reach this conclusion I have started from a stackblitz where I configured the data loading and everything to work the same way as my main project. Everything works fine and the arrows show up even if there's no data in the table or anything configured for the sorting in the controller.
I've checked all stylesheets and imports and they are identical.
I have also copy-pasted the table in the view here on stackblitz with no other modifications than adjusting things for the 'displayed column' object in the controller so that it loads my data.
This copy-pasted table doesn't show the arrows at all and can't for the life of me find either an error or something wrong in the compiled source.
Due to this I'm convinced there's a global issue in my project but don't know where I haven't yet looked.
Edit 1:
I didn't import MatSortModule in app.modules --- such a stupid oversight on my side :(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With