1

In Angular you can use the # to identify a directive like this:

<div #actualTarget></div>

I need to make mine dynamic like this:

<div #{{l + '-' + n}}></div>

What's the correct way to do this?

 <div class="list-cont shadow" *ngFor="let cat of categories; let l = index">
 ...
  <ul class="responder" *ngFor="let responder of cat.bidderResponses; let n = index">

   <li>
    #
   </li>
  </ul>
 </div>
Mark
  • 2,543
  • 6
  • 33
  • 44