I have a specific input setup in the following way:
<form [formGroup]="loginForm"">
<ion-input [formControlName]="'email'"></ion-input>
In my component, I've defined the form as:
this.loginForm = this.formBuilder.group({
email: ['', Validators.compose([Validators.required, Validators.email])],
password: ['', Validators.required]
});
However, when running the application, Angular is throwing an error:
ERROR Error: No value accessor for form control with name: 'email'
I have confirmed that ReactiveFormsModule and FormsModule are both imported into my modules.
Any other suggestions on what may be causing this issue?