I am trying to pass the price field as hidden to the component action using the following
<form #formValue1 = "ngForm" (ngSubmit)="submit(formValue1)" method="post">
<input type="hidden" name="price" ngModel value="10">```
<button class="btn btn-primary" type="submit">Search</button>
</form>
But the value is not getting in the action in the component. The following are the content in the component file
submit(formValue:any){
var formData: any = new FormData();
console.log("Form Submitted !",formValue.value);
}
The price value is getting as null eventhough i set the value as 10. What may be the reason? is there any issues in setting the hidden field value?