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

Value in input field will not display if I set ngControl

$
0
0

@shmu80 wrote:

When I set ngControl in Ion-input the value will not display, but value will display without ngControl

Assuming email value=abcdefg123@abc.com

Example 1:

<ion-item>
      <ion-label stacked>Email:</ion-label>
      <ion-input type="email" value="{{data.email}}" >
      </ion-input>
</ion-item>

UI Display

Email:
abcdefg123@abc.com

Example 2:

 <ion-item>
      <ion-label stacked>Email: </ion-label>
      <ion-input type="email" value="{{data.email}}" ngControl="email">
      </ion-input>
 </ion-item>

UI Display

Email:
<empty>

Appreciate if anybody able to advise.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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