Ion-input cannot show default text in value

HI,

I created a ion-input field with a default value. It doesnt shows that value.

Ie.

<ion-input [(ngModel)]="collegename" placeholder="College name" type="text" value="texthere"></ion-input>

Here The input doesn’t shows ‘texthere’ in input field… why is this happening…

Since you bound it to an ngModel, that is what the input will populate with. Try setting the variable collegename to something and it should be shown in the input