Angular2 Get reference to element created in ngFor : <p>How would I go for referencing an Element in the dom which was created in a ngFor loop.</p>

<p>e.g. I have a list of elements which I iterate over:</p>

<pre><code>var cookies: Cookie[] = [...];

&lt;div *ngFor="#cookie of cookies" id="cookie-tab-button-{{cookie.id}}" (click)="showcookie(cookie);"&gt;Cookie tab&lt;/div&gt;


&lt;div *ngFor="#cookie of cookies" id="cookie-tab-content-{{cookie.id}}" "&gt;Cookie Details&lt;/div&gt;
</code></pre>

<p>How would I reference these divs, so I could add a css class like "is-active".
Or is my approach just wrong.</p>
