Skip to content

Commit 096391d

Browse files
crisbetoandrewseguin
authored andcommitted
build: set up universal checks for drag&drop (#14132)
Adds `drag-drop` to the Angular Universal CI checks.
1 parent e213e77 commit 096391d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/universal-app/kitchen-sink/kitchen-sink.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,3 +364,11 @@ <h2>Badge</h2>
364364
<button mat-raised-button matBadge="99">
365365
Clicky thing
366366
</button>
367+
368+
<h2>Drag and Drop</h2>
369+
<button cdkDrag>Drag me around</button>
370+
371+
<ul cdkDropList>
372+
<li cdkDrag>One</li>
373+
<li cdkDrag>Two</li>
374+
</ul>

src/universal-app/kitchen-sink/kitchen-sink.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {
4747
import {BrowserModule} from '@angular/platform-browser';
4848
import {ServerModule} from '@angular/platform-server';
4949
import {FocusMonitor} from '@angular/cdk/a11y';
50+
import {DragDropModule} from '@angular/cdk/drag-drop';
5051
import {Observable, of as observableOf} from 'rxjs';
5152

5253
export class TableDataSource extends DataSource<any> {
@@ -136,7 +137,8 @@ export class KitchenSink {
136137
MatStepperModule,
137138

138139
// CDK Modules
139-
CdkTableModule
140+
CdkTableModule,
141+
DragDropModule,
140142
],
141143
bootstrap: [KitchenSink],
142144
declarations: [KitchenSink, TestEntryComponent],

0 commit comments

Comments
 (0)