I want to toggle particular element when clicked on click event and its in loop to toggle all class, means all div show. Here is my code
<div *ngFor="let xyz of abc">
<span (click)="showOptions = !showOptions"></span>
<ul [ngClass]="{show:showOptions}">
<li> some text</li>
</ul>
<div>{{xyz}}</div>
</div>
It should open next element not all!! any help?