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

Fixes #7 - sync DOM with scope.model #9

Merged
merged 2 commits into from
Aug 19, 2015
Merged

Conversation

luckylooke
Copy link
Contributor

Only one problem I see here... if some use filtered ngRepeat. In such case DOM element index will differ from model index. I will solve this another time.


app.controller('RepeatCtrl', ['$scope',
function ($scope) {
app.controller('RepeatCtrl', ['$scope', 'dragulaService',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't seem like it needs dragulaService

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I forgot to remove it... why jshint didn't tell anything? It doesn't check example.js?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. .jshintignore ignores example directory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I will remove it soon, I recalled why I left it there.. I wanted to try removeOnSpill, but I forgot on it while writing else.. now when I test it I see that if I use dragulaService.options($scope, 'another-bag', {removeOnSpill:true}) it disconnect models. I have to repair it.

@bevacqua
Copy link
Owner

Looks great

bevacqua added a commit that referenced this pull request Aug 19, 2015
Fixes #7 - sync DOM with scope.model
@bevacqua bevacqua merged commit 3d780ad into bevacqua:master Aug 19, 2015
@bevacqua
Copy link
Owner

I made you a collaborator so you can push to angular-dragula directly.

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

Successfully merging this pull request may close these issues.

2 participants