You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
When I try to sort the first time, everything will move back to its original position. If I try to sort again after that everything works great. Any ideas?
The text was updated successfully, but these errors were encountered:
You should not apply filters to ng-repeat since (as README states):
...Otherwise the index matching of the generated DOM elements and the ng-model's items will break. In other words: The items of ng-model must match the indexes of the generated DOM elements.
Filtering/Ordering should (ng filters in general that manipulate the ng-model) be applied in the controller and not in the view. For more details read the comments in #70
Please refer to the filtering and two ordering examples found in README on how you should properly apply your logic inside the controller.
I'm using ui-sortable with firebase/angularfire to save the data. Here's my setup:
When I try to sort the first time, everything will move back to its original position. If I try to sort again after that everything works great. Any ideas?
The text was updated successfully, but these errors were encountered: