cedvdb / ng2draggable

draggable directive for angular 2
https://cedvdb.github.io/ng2draggable/
MIT License
18 stars 16 forks source link

Default position? #8

Closed jredd closed 7 years ago

jredd commented 7 years ago

Is it possible to give a default position for the draggle to start in? I tried just offsetting it with css but when people would do the initial drag it would snap the offset amount on the screen

cedvdb commented 7 years ago

Just define the position in the template.

<div class="cube" [ng2-draggable]="true" style="top:60px;left:400px;">