Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/demo/src/app/examples/06-copy-model.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<label for='hy'>You must provide a <code>copyItem</code> function if you're using <code>copy</code> with <code>[dragulaModel]</code>.</label>
<div class='wrapper'>
<div class='container' dragula="PERSON" id="left" [(dragulaModel)]="left">
<div *ngFor="let person of left">{{person | json}}</div>
@for (person of left; track person) {<div>{{person | json}}</div>}
</div>
<div class='container' dragula="PERSON" id="right" [(dragulaModel)]="right">
<div *ngFor="let person of right">{{person | json}}</div>
@for (person of right; track person) {<div>{{person | json}}</div>}
</div>
</div>
<pre><code>{{ code }}</code></pre>
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/examples/09-ngfor.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<label for='hy'><strong>Angular-specific example.</strong> Fancy some <code>ngFor</code>?</label>
<div class='wrapper'>
<div class='container' [dragula]="MANY_ITEMS" [(dragulaModel)]='many'>
<div *ngFor='let text of many' [innerHtml]='text'></div>
@for (text of many; track text) {<div [innerHtml]='text'></div>}
</div>
<div class='container' [dragula]="MANY_ITEMS" [(dragulaModel)]='many2'>
<div *ngFor='let text of many2' [innerHtml]='text'></div>
@for (text of many2; track text) {<div [innerHtml]='text'></div>}
</div>
</div>
<div class='wrapper'>
Expand Down
6 changes: 4 additions & 2 deletions apps/demo/src/app/examples/10-nested.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
Fancy some nested <code>ngFor</code>?
</label>
<div class="wrapper" dragula="COLUMNS" [(dragulaModel)]="groups">
<div class="container" *ngFor="let group of groups">
@for (group of groups; track group) {
<div class="container">
<span class="group-handle">{{group.name}}</span>
<div class="container" dragula="ITEMS" [(dragulaModel)]="group.items">
<div *ngFor="let item of group.items" [innerHtml]="item.name"></div>
@for (item of group.items; track item) {<div [innerHtml]="item.name"></div>}
</div>
</div>
}
</div>
<pre><code>{{ code }}</code></pre>
</div>
8 changes: 4 additions & 4 deletions libs/ng2-dragula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ng2-dragula",
"private": false,
"version": "7.0.0",
"description": "Fork of ng2-dragula updated to angular version 19",
"description": "Fork of ng2-dragula updated to angular version 21",
"repository": {
"type": "git",
"url": "git+https://github.com/valor-software/ng2-dragula.git"
Expand Down Expand Up @@ -31,9 +31,9 @@
"rxjs": ">=6.0.0 <8.0.0",
"@types/dragula": "^2.1.34",
"dragula": "^3.7.2",
"@angular/animations": ">=16.0.0 <21.0.0",
"@angular/core": ">=16.0.0 <21.0.0",
"@angular/common": ">=16.0.0 <21.0.0"
"@angular/animations": ">=16.0.0 <23.0.0",
"@angular/core": ">=16.0.0 <23.0.0",
"@angular/common": ">=16.0.0 <23.0.0"
},
"nx": {
"targets": {
Expand Down
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
"nxCloudAccessToken": "NWVjMDFjN2MtNzdmYS00NDFjLWE0YjUtNjA5YTdmYzdmNWU4fHJlYWQtd3JpdGU=",
"useInferencePlugins": false,
"defaultBase": "development",
"useLegacyCache": true
"useLegacyCache": true,
"analytics": false
}
Loading