Edit default value of ion-input Ionic 4

How is it to edit assigned default value of ion-input. I assign a value to ion-input, and when I run the application, the default value cannot be erased.

      <ion-item>
        <ion-input class="detailnya" type="text" [(ngModel)]="edit.name" style="font-size:12px; color: #646262;">
          {{ basicUserData?.full_name }}</ion-input>
      </ion-item>

I Apparently can’t edit “David Beckham” Which is:

{{ basicUserData?.full_name }}

What is edit.name ?

Have you tried…

{{ edit?.name }}

or…

[(ngModel)]="basicUserData.full_name"
2 Likes

ah yes, I just notice that I could set the value of ngModel directly on the ts page. thank you sir!