I'm using cdk Drag & Drop from Angular 7, but now i'm stuck. When I reload the page, all the items that was organized keep going back to the original position. How can I save the position and retrieve they to the elements?
For now, this is what I have:
Parent of Pie
<div class="pie-content">
<div class="individual-pie" *ngFor="let pie of serials">
<app-pie [serialnumber]="pie"></app-pie>
</div>
</div>
Pie.html
<div
cdkDragBoundary=".content"
cdkDrag
(cdkDragEnded)="dragEnd($event)"
class="pie"
[chart]="pie"
></div>
Pie.ts
dragEnd(event: CdkDragEnd) {
console.log(event);
}