Is there a way to display two values in an HTML list, but only show one of them when using <p>{{ ? }}</p>
?
<option *ngFor="let pdcSol of this.readSolHeatPumps" [value]="[pdcSol.denumire, pdcSol.cod]">{{ pdcSol.denumire }}</option>
<p>{{ this.formSol.controls['modelPDC'].value }}</p>
Even though both options will be in the paragraph, I am looking to display only one of them.
Your help is greatly appreciated. Thank you!