hello im working with ankular and
have this expression
return this.color=== itemyellow ? this.item="yellow" : etx
how do i put two possible outcomes like so
itemyellow or itemred?
And also a question about i have this
((li class="nav-item active" [ngClass]="{'active': 'selectedItem == item'}" (click)="listClick($event, item)" *ngFor="let item of items">
how do i make the selected item green? the active “item” that is
aniways thanks for ani help/