With the help of 2 answers, I ended up using following update -
I just updated my code in drag event function -
drag: function( event, ui )
{
scope.layer.data.left = ui.position.left;
scope.layer.data.top = ui.position.top;
scope.$apply();
}
Here is the updated codepen - http://codepen.io/anon/pen/wgzme