1

[cdkDropListConnectedTo]="[todo]" not connected to #todo in another div using Angular 9

it says the property "todo" does not exist on "Component_name"

cdkDropList #todo="cdkDropList" [cdkDropListData]="unScheduleTasksArray"           [cdkDropListConnectedTo]="[prog]" (cdkDropListDropped)="drop($event)" 

another div is

cdkDropList #prog="cdkDropList" [cdkDropListData]="scheduleTasksArray"
[cdkDropListConnectedTo]="[todo]" (cdkDropListDropped)="drop($event)"
The Grand J
  • 348
  • 2
  • 5
  • 14
  • Please include the code you were using that cause this. We can't do much with just this info. I would also suggest reading [tour] and [ask] if you haven't already. – The Grand J Sep 02 '20 at 06:02
  • Sorry but could you put it in the question? – The Grand J Sep 02 '20 at 06:10
  • Updated my question – Sreenath Reddy Sep 02 '20 at 06:14
  • Why are you using #todo? If you are trying to set a custom property instead of a default existing one then just first try removing the # and seeing if that works. Also when I asked for the code I meant the full code. For example if it is a div then show
    and
    as appropriate.
    – The Grand J Sep 03 '20 at 00:18

0 Answers0