I am using Angular version 6. When I run the below code it works
<input type="text" class="form-control" id="designation" value="sample" />
I need to get this default value ("sample") from text box, so then I changed this code to
<input type="text" class="form-control" id="designation" value="sample" [(ngModel)]="addRequisitionss.designation" name="designation" #designation="ngModel" />
When I executed above code value "sample" is not showing in text box.
I am trying to display default value("sample") in the text field, and I have to fetch that value("sample"), any suggestions?