Presented in HTML format:
<div class="row" ng-app="">
<form>
<input type="text" ng-model="link" name="link"
class="form-control" id="yesklinkshjhs3"
value="hello" placeholder='Link for your post.'>
</form>
<small><a href='' ng-bind='link' class="thelink"></a></small>
</div>
This HTML code was created specifically to address an issue. Although it may contain errors, the main problem is that the textbox cannot be prefilled with a value when using ng-model
.
If the ng-model
is removed, the value appears. However, I require the form to be prepopulated to allow for easy editing of a post. How can I achieve this?
I attempted removing ng-model
, which resolved the issue but I need it in place to display real-time changes in the next box. My experience with Angular is limited.
Here is the JSFiddle link: http://jsfiddle.net/iamrahulkumar001/wksapfr2/
The textbox remains empty despite attempts to prefill it.