Maureen Moore

Maureen Moore

  • NA
  • 206
  • 0

Angular: Adding an import to app.module.ts throws an error

Jun 28 2020 3:56 PM
I thought that if you add an import to the controller.ts file, that it is supposed to be added to app.module.ts as well. But, when I added the NgForm to my controller alone without adding it to app.module.ts my code worked fine. Then when I added it to app.module.ts I got an error. What is the right way to do it?

Answers (1)