I have an input defined as below
<form [formGroup]="loginForm"">
<ion-input [formControlName]="'email'"></ion-input>
My component declares the form as
this.loginForm = this.formBuilder.group({
email: ['', Validators.compose([Validators.required, Validators.email])],
password: ['', Validators.required]
});
Yet at runtime angular is throwing this error
ERROR Error: No value accessor for form control with name: 'email'
I have ensured I have both ReactiveFormsModule & FormsModule in my modules Import
Any other ideas what I'm missing?