Ask Your Question
4

Is it not possible to associate 'ngModel' with 'ion-input'?

asked 2023-05-30 04:09:43 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-30 04:12:01 +0000

qstack gravatar image

No, it is possible to associate 'ngModel' with 'ion-input'.

Here is an example:

<ion-item>
  <ion-label>Email</ion-label>
  <ion-input type="email" [(ngModel)]="email"></ion-input>
</ion-item>

In the above code, 'ngModel' is associated with 'ion-input' to bind the value of 'email' variable to the input field.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-30 04:09:43 +0000

Seen: 19 times

Last updated: May 30 '23