Ramco Ramco

Ramco Ramco

  • 451
  • 3k
  • 426.1k

List Employee Names

May 24 2024 5:10 AM

Hi

  I have below code and i want to display a list of items in a modal column.

export class AttendanceComponent implements OnInit {
  attendanceArray: iAttendance [] = [];
  objattendance : attendance = new attendance();
  employeeArray: any [] = [];
  
  constructor(private empSrv:EmployeeService){
  }

  ngOnInit(): void {
    this.getEmployee();
  }
  
  getEmployee(){
    this.empSrv.getallEmployee().subscribe((result: any)=>{
      this.employeeArray = result.data;
    })
  }
}
<label> Name </label>

<select>    </select>

Thanks


Answers (4)