Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71530

Can't bind existing selected value in ion-option

$
0
0

@akr_rajkumar wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>