Is it somehow possible to say if i >= 2 then [cdkDropListConnectedTo]="[one, two]", otherwise [cdkDropListConnectedTo]="[three, four]"?
*ngIf didn't work for me.
I also searched for "Angular ngif directives". However, the answers I was looking for did not come out.
<div *ngFor="let task of this.tasks; let i = index">
<div>
<div
cdkDropList
id="task-container-{{i}}"
#ref{{i}}="cdkDropList"
[cdkDropListData]="task.getDropListData()"
[cdkDropListConnectedTo]= "[]"
(cdkDropListDropped)="drop($event)">
<div>
<p>{{task.getHeadline()}}</p>
</div>
</div>
</div>
</div>
[cdkDropListConnectedTo]="i >= 2 ? [one, two] : [three, four]".*ngIfis used for rendering the element by condition.one, twoin[one, two]? Is this array of strings?