I am trying to restrict movement within an element using https://material.angular.io/cdk/drag-drop/overview . The example unfortunately does not work for my project and I can move the example out of the borders.
<div class="example-boundary">
<div class="example-box" cdkDragBoundary=".example-boundary" cdkDrag>
I can only be dragged within the dotted container
</div>
</div>
Any alternative solutions? Does anyone know who I can fix it?