I have created and input box which is accepting an image as an input in one of the div tags. I also have another div defined to which i want to drag and drop the image.Any help? My code right now is:
div class="box1"
cdkDropList
#image="cdkDropList"
[cdkDropListConnectedTo]="[nextblock]"
(cdkDropListDropped)="drop($event)"
[cdkDropListData]="url"
><input type="file" (change)="fileChange($event)" placeholder="Upload file" >
<img id="blah" [src]="url" alt="your image" cdkDrag/>
</div>
<div
class="box2"
cdkDropList
#nextblock="cdkDropList"
[cdkDropListConnectedTo]="[image]"
(cdkDropListDropped)="drop($event)"
(cdkDropListEntered)="setColor()">
Box1
</div>
I am using angular drag and drop material.