I am currently working on creating a basic registration form using Ionic 6.12.3 ionic -V
, Angular CLI version 11.0.5, and npm version 6.14.11. You can find the repository for this project here: Repo.
Below is my implementation for the register.page.ts
:
// Code omitted for brevity
And here is the corresponding register.page.html
:
<!-- HTML code omitted for brevity -->
In addition to that, here is the snippet from app.module.ts
:
// Code excluded for conciseness
Although I have included
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
in my app module, declared FormGroup Credentials in register.page.ts
, and utilized it within register.page.html
, I am encountering the following error:
Error: NodeInjector: NOT_FOUND [ControlContainer]
// Detailed error message displayed above
This issue has left me puzzled even after perusing through several resources. Surprisingly, the login page appears to function correctly, even without importing ReactiveFormsModule
in app.module.ts.
For more information, please refer to the repository link: Repo
Thank you for your assistance :)