I have a bunch of tasks and they have comments, when I click show comments on a particular list element I want to display only the component for that index.
<ul class="list-group" *ngFor="let item of todayTasks;let i = index">
<li ..
<button class="btn btn-info float-right"(click)="displayCommentsComponent(i)">Comments</button>
</li>
<app-today-tasks-comments id="{{'tasksComment' + i}}" *ngIf="showCommentComponent"</app-today-tasks-comments>
</ul>
I don't know what to put in that *ngIf to display one specific element by index, right now it shows all of them.