Ramco Ramco

Ramco Ramco

  • 444
  • 3.4k
  • 535.5k

Select in Angular

May 27 2024 3:30 PM

Hi

  How the below code works

<label for="empName" class="form-label">Name</label>
                    <select id="empName" class="form-select" [(ngModel)]="objattendance.empId">
                        <option *ngFor="let item of attendanceArray" [value]="item.empId">{{ item.empName }}</option>
                    </select>

Thanks


Answers (2)