as shown in the code below, I want the Select element to take the value attribute value of the obj object and the H1 element content to take the name attribute value. How should I write it?
<h1> {{ ??? }} </h1>
<select [(ngModel)]="???">
<option *ngFor="obj of arrayOfObj" [value]="obj.value" name="test">{{obj.name}}</option>
</select>
arrayOfObj = [
{ name: "a", value = "1" },
{ name: "b", value = "2" }
]