Dragula: get class and id of the dragged item
<p>I have seen <a href="https://stackoverflow.com/questions/39009643/get-id-of-dropped-div-using-dragula-javascript">this</a>, but it does not work in my code.
I am using <code>Dragula</code>, in my <code>Angular2</code> application with <code>Typescript</code>.</p>

<p>I need to get the id of the element of the draged element.
Here is a part of the typescript class:</p>

<pre><code> constructor(private dragulaService: DragulaService) {

    dragulaService.drop.subscribe((value) =&gt; {
       this.onDrop(value.slice(1));
    });

  }


  private onDrop(args) {
    let [e, el] = args;
    console.log("on Drop");
    console.log(e);
    console.log(el);
  }
</code></pre>

<p>I know the <code>el</code> contains the draged element, but <strong>how can i get the id out of an html element in typescript?</strong></p>