<li *ngFor="#item of items" [id]="item.id">some text</li> How to access dynamically created ID in angular in a html div using #
<li *ngFor="#item of items" [id]="item.id">some text</li>
I want to use the ID created in the above code using # dynamically in a div like in the below code. <div #(id created in above code)></div>
<div #(id created in above code)></div>
2.1m questions
2.1m answers
60 comments
57.0k users