Skip to content

Commit

Permalink
chore(reamde): update sample (valor-software#484)
Browse files Browse the repository at this point in the history
When using dragularModel, the dragula and dragulaModel have to be placed in the parent container (not the children), or the children disappear on drop.
valor-software#445
  • Loading branch information
jeryRazakarison authored and valorkin committed Dec 16, 2016
1 parent 1f05741 commit 57a5ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ There's a `dragula` directive that allows you to group containers together. That
If your `ngFor` is compiled from array, you may wish to have it synced. For that purpose you need to provide model by setting the `dragulaModel` attribute on the bag element.

```html
<ul>
<li *ngFor="let item of items" [dragula]='"bag-one"' [dragulaModel]='items'></li>
<ul [dragula]='"bag-one"' [dragulaModel]='items'>
<li *ngFor="let item of items"></li>
</ul>
```

Expand Down

0 comments on commit 57a5ba4

Please sign in to comment.