Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resetting elements to original position? #323

Open
TongueToe opened this issue May 28, 2017 · 0 comments
Open

Resetting elements to original position? #323

TongueToe opened this issue May 28, 2017 · 0 comments

Comments

@TongueToe
Copy link

Is there an easy way to do this? Something along the lines of keeping track of the original position so I can move it back? I've tried clearing the array that was being read by ng-repeat, then repopulating the array with old data, but the modified positions are kept.

The screenshot is what happens after I clear & add the elements back in the array, with the arrows pointing to their origin position. Their current position is where I moved them to before the reset.
capture

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

No branches or pull requests

1 participant