Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
add a note in Usage to tell people that aurelia works weird and we have to adapt
  • Loading branch information
Michael Malone committed Mar 18, 2016
1 parent 744e3fa commit ab4b018
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import {Dragula} from 'aurelia-dragula';
let dragula = new Dragula();
```

Because of the way aurelia works, it is recommended that the `dragend` event is subscribed to and `cancel` is then called, doing the manipulation of the view-models in JavaScript and letting aurelia re-render the changes. This is not only recommended, but vital inside of a `repeat.for`.

###Options
`import {Options} from 'aurelia-dragula;`

Expand Down

0 comments on commit ab4b018

Please sign in to comment.