asafdav / ng-clip

Copy to clipboard using AngularJS
MIT License
260 stars 71 forks source link

Make $event object available in clipClick callback #93

Open ghost opened 8 years ago

ghost commented 8 years ago

Enable to pass the $event object to the clip-click callback:

<button clip-click="clipboardSuccess($event)">

And to handle it in the controller:

$scope.clipboardSuccess = function($event) {
  // do something with $event
};