Questions tagged [dragdropmodule]
5 questions
3
votes
1 answer
I install '@angular/cdk' and got an error when I import DragDropModule, what do I do wrong?
What are you trying to do?
I want to use @angular/cdk (source) to make a modal draggable as seen in their tutorial
Reproduction
npm i @angular/cdk
then when I import the module in my file xxx.module.ts :
import { DragDropModule } from…

Boris BELLOC
- 196
- 1
- 4
- 15
1
vote
0 answers
CdkDragDrop Drop not working with "ng build --prod" configuration
I am using cdkDropList of Angular material CdkDragDrop. Drag is working but drop is not working.
It is only happening when I am using "ng build --prod". I tried with removing all default configuration for production in angular.json file.
Here is…

Gaurav Juyal
- 31
- 2
1
vote
1 answer
Is there a way to make components (not elements) draggable in angular?
Im using the Angular CDK drag and drop module, it works well on html elements like div, p and such. but for some reason when i put a cdkDrag directive on a component, it doesnt work.
content