<label class="item item-input">
<span class="input-label"> Gender : </span>
<input type="text" value="{{results.address}}" ng-model="formData.address">
</label>
I want to place data coming from my API in the text field so that it can be changed later and I am using ng-model to bind the input data to the form so that it can be sent to API for making a change.
But I am getting an empty text field in a text box. value doesn't seem to be working and I have checked changing value to ng-value
When i used this code below everything is working pretty fine ! this means i have no problem in my controller ! i am getting a correct address from my API.
<label class="item item-input">
<span class="input-label"> Gender : </span>
<input type="text" ng-model="formData.address">"{{results.address}}"
</label>
While using ng-value i am getting error !
<label class="item item-input">
<span class="input-label"> Gender : </span>
<input type="text" ng-value="{{results.address}}" ng-model="formData.address">
</label>