Give dynamic id Angular2 Binds
<p>My JavaScript:</p>

<pre><code> this.items = [
            {name: 'Amsterdam1', id: '1'},
            {name: 'Amsterdam2', id: '2'},
            {name: 'Amsterdam3', id: '3'}
        ];
</code></pre>

<p>My HTML:</p>

<pre><code>&lt;ul&gt;
  &lt;li *ngFor="#item of items" id={{item.id}}&gt;
    {{ item.name}}
  &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>I want to assign a dynamic id to each element, but can't get it to work. The name is showing up but the id is not.</p>