When working in HTML, I have the ability to set the option text and send the value like this:
<select id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</select>
After sending it to my TS file, I can retrieve the value.
In Angular, I handle it like this:
<select formControlName="Cars">
<option *ngFor="let item of values_Car">
{{item}}
</option>
</select>
TS
values_car : any = ["Volvo", "Saab"];
I am wondering how I can create a dictionary to display only the text and retrieve the corresponding values.