Home ng-droplet drag and drop file uploader in Angularjs
 I am trying to add a drag and drop file upload.I am using ng-droplet. The documentation states that event needs to be binded on controller this way:  $scope.$on('$dropletReady', function whenDropletReady() {$scope.interface.allowedExtensions(['png', 'jpg', 'bmp', 'gif', 'svg', 'torrent']); $scope.interface.setRequestUrl('upload.html');$scope.interface.defineHTTPSuccess([/2.{2}/]); $scope.interface.useArray(false); });  I need to use the event without$on just like simple method call Angularjs, i.e. in html we have   and somehow I could bind a function defined in controller to this droplet.Can this be done? I am new to Angularjs. Hence some insight would be helpful.