Linked Questions

Popular Questions

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 that 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 newbie in angular.I am trying to display default value("sample") in text field ,and i have to fetch that value("sample"),any suggestions??

Related Questions