javascript - Detect where drop occured (ng-flow) -


i using ng-flow drag & drop files , upload server. page developing has multiple drop listeners . there way detect on element drop occurred ?

    <body ng-app="droptest" flow-init="{target:''}">      <div name="drop1" class="fa fa-paperclip fa-rotate-90 cell small" flow-drop="" title="drag/drop files upload record"></div>  <div name="drop2" class="fa fa-paperclip fa-rotate-90 cell small" flow-drop="" title="drag/drop files upload record"></div>      </body>   $scope.$on('flow::fileadded', function (event, $flow, flowfile) {    //how detect whether drop occured on drop1 or drop2? }); 

i figured out

 $scope.$on('flow::fileadded', function (event, $flow, flowfile, elementdetails) {                elementdetails.target           }); 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

oracle - Changing start date for system jobs related to automatic statistics collections in 11g -