I have a list dynamically filled with objects.
I want to achieve to add a background color to the div containing the checked checkbox.
Moreover, i want to show the buttons when the checkbox is checked.
<div *ngFor="let item of items" [ngClass]="classname: ifCheckboxChecked">
<p-checkbox (onChange)="onCheckboxChecked($event)"></p-checkbox>
<span>{{item.itemName}}</span>
<div *ngIf="ifCheckboxChecked">
<button></button>
<button></button>
</div>
</div>