I have an Angular application that is used to display company and contact person information in a text box format. Here is the code for displaying the Company Email address:
<label> Company Email address</label>
<input type="text" class="form-control" [(ngModel)]="companyInfo.contactInfo.email" value="{{ companyInfo?.contactInfo?.email }}">
Additionally, here is the code for displaying the Contact Person Email address:
<label>Contact Email address</label>
<input type="email" class="form-control" [(ngModel)]="companyInfo.contactPerson.contactInfo.email" value="{{ companyInfo?.contactPerson?.contactInfo?.email }}">
Even though the component assignment seems to be working correctly, there is an issue where typing in the email address for the company also displays the same email address for the contact person. Is there something obvious that I am missing in the code causing this mirroring effect to occur?