Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Client-side sorting directive #27

Closed
tw-zz-rk opened this issue Jun 26, 2015 · 5 comments
Closed

Client-side sorting directive #27

tw-zz-rk opened this issue Jun 26, 2015 · 5 comments

Comments

@tw-zz-rk
Copy link
Contributor

Having trouble following the client-side sorting example (using md-order) outlined in the README.

Here's a plunker demonstrating that clicking a <th> apparently has no effect on the sort order (although watching the ctrl.order variable in the md-data-table directive proves that it is being updated on click).

Am I missing a step? If so, I'd be happy to submit a PR for the README with additional detail.

@tw-zz-rk
Copy link
Contributor Author

Might have uncovered another issue with this plunker: the <tbody> has the md-auto-select directive. As intended, clicking anywhere in the row adds the element to the selected array; however, the corresponding md-checkbox appears to not have the md-checked class applied.

@daniel-nagy
Copy link
Owner

@twrk I've updated the version of Angular in your provided plunker to version 1.4.x and everything seems to be working as expected. I'm not sure what incompatibility is being experienced with Angular 1.3.15. Do you need to use Angular 1.3.15 in your app or are you able to update?

@tw-zz-rk
Copy link
Contributor Author

Ahh yeah, that'll do it, thanks! And 1.4 works just swimmingly for me :)

@daniel-nagy
Copy link
Owner

👍

@nimeetshah0
Copy link

I'm facing the same issue with Angular 1.3.15.
Is there any workaround for this version of angular? I cannot update to 1.4.x without getting multiple approvals.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants