Html
<ion-select [(ngModel)]=“list_Teacher”>
<ion-option *ngFor=“let listschool of teacherList”>{{ listschool.teacher_name }}
Ts
teacherList : any = [];
<ion-select [(ngModel)]=“list_Teacher”>
<ion-option *ngFor=“let listschool of teacherList”>{{ listschool.teacher_name }}
teacherList : any = [];
Your code is a bit brief. Why is the list_Teacher variable not included in the TS File ?What is that variable
Try
teacherList : Array<any> = [];
To get an empty array