Here is the view

```
.container(ng-controller="activityCtrl")
  h3 Edit your plan
  .row
    .one-half.column
      div(draggable="true" ondragstart="onDrag()") I am draggable

```

And i have defined a function inside controller like

```
$scope.onDrag = (evt)=>{
  console.log(evt);
  ev.dataTransfer.setData("text", ev.target.id);
}

```

The error that i am getting is `Reference error onDrag not defined`. I am guessing that it is somewhat because i need to reference the function defined in $scope in `ondragstart`. How can i do the same ?