In this case i'm using Reactive Forms not ngModel
I'm writting an interpolation value into an input text field
When i submit my form i get all the field values, except the interpolated one. The interpolated is empty
How to fix it??
<label class="form-control-sm"
id="identificationCode"
name="identificationCode">{{reference.value + "-" + publishDate.value}}
</label>
<input #txtIdCode
type="text"
id="idCode"
name="idCode"
formControlName="txtIdCode"
maxlength="15"
value="{{reference.value + '-' + publishDate.value}}">
When i get txtIdCode in this way, i get an empty value but the input text is filled:
item.identificationCode = this.myForm.controls["txtIdCode"].value;