Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Thanks for the help. I refactored my code to import the FormsModule and use FormBuilder, but I'm still getting the same error. Commented Feb 19, 2020 at 16:47
  • can you please update you're question with the new code Commented Feb 19, 2020 at 20:15
  • Instead of password: [null] please make it password: [null, Validators.required] and import Validators from @angular/forms also. Commented Feb 20, 2020 at 10:05
  • OK, now it builds without complaining, but it doesn't render the component. Now if I inspect the HTML while the app is running, there's just <!--container--> where the component is supposed to be. Commented Feb 20, 2020 at 16:26
  • Okay so the password text box is loading, and there's no error in the console log. What are you expecting? The Alert? Commented Feb 21, 2020 at 15:37