I have a dynamically populated list of objects.
My goal is to change the background color of the div that contains a checked checkbox.
Additionally, I would like to display buttons when the checkbox is selected.
<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>