Can't bind existing selected value in ion-option

Hi,

I’ve two functionalities, i.e., to add project and to edit the project.

After adding the project, if I want to edit it means, I need to get all the existing data in the form. I’m using template driven form.

    <ion-item>
      <ion-label floating >Project Type*</ion-label>
      <ion-select required  #refProjType="ngModel" class="form-control"  name="generalMasterProjectType" ngModel >
          
        <ion-option *ngFor="let projecttype of projtype" [value]="projecttype.gmId" selected=" projdetail.projectType == projecttype.gmName "  >{{projecttype.gmName}} </ion-option>
  
          </ion-select>
        </ion-item>

Kindly assist me how to do