-
Notifications
You must be signed in to change notification settings - Fork 109
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
Conversation
|
||
app.controller('RepeatCtrl', ['$scope', | ||
function ($scope) { | ||
app.controller('RepeatCtrl', ['$scope', 'dragulaService', |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Looks great |
Fixes #7 - sync DOM with scope.model
I made you a collaborator so you can push to |
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.