title: Cancel drop Ng2 Dragula
body: <p>I was trying to follow advice from this link to revert the drop action:</p>
  
  <p><a href="https://stackoverflow.com/questions/41512773/dragula-revert-drop-in-ng2-dragula">Dragula :revert drop in ng2-dragula</a></p>
  
  <p>but with no success.</p>
  
  <p>What i want to do is to be able to revert the drag operation under certain conditions. Alternatively on condition disable Dragula altogether.</p>
  
  <p>Html:
       
          
          
       </p>
  
  <p>.ts file</p>
  
  <pre><code>    export class VisibilityConfiguratorComponent implements OnChanges {
  
        colsCopy: ColumnItem[];
  
        constructor(private dragulaService: DragulaService) {
          let drake = dragulaService.drop.subscribe((value) =&gt; {
            this.applyConfig();
          });
        }
  
        ngOnInit() {
          this.dragulaService.setOptions('bag', { moves: (el, container, handle) =&gt; { return false; } });
    }
  }
  </code></pre>
  
  <p>As you can see I'm trying to disable move entirely but this doesn't seem to have any effect.</p>