Wednesday, December 9, 2020

Ionic 5: Form doesn't catch the input value

 I was upgrading my Ionic 3 app to Ionic 5. I was basically creating a new blank app and adding everything back in. Yesterday when I was re-creating the SignupPage, I ran into a weird issue. When I hit "create account" button, it didn't catch any input value in the form. Everything is blank. I checked and re-checked my code. Everything looks correct. It turned out to be that I forgot to add SignupPage to the decrlarations of in the module!!! 

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    IonicModule,
    LoginPageRoutingModule
  ],
  declarations: [
    LoginPage,
    SignupPage
  ]
})

No comments:

Post a Comment