I am new to Angular. I want to implement drag and drop functionality in my angular 6 app. I came across a very good library "CDK".
I have successfully implemented functionality to transfer items between two lists. Both the lists are in same component.
Now I am working on separating out the list components. I have put droplist1 in list-a-component.html and its items array in list-a-component.html. Similarly for droplist2.
But it doesn't work. I can move items in lists but cant transfer from one to another.
On investigation found that when the html renders for both lists, the html is missing "ng-reflect-connected-to" value. Its null.
<div _ngcontent-c1="" cdkdroplist="" class="example-list cdk-drop-list" ng-reflect-connected-to="" ng-reflect-data="Get to work,Pick up groceries," id="cdk-drop-list-2">