If your controller.ts is part of a module that is added in app.module.ts
then it doesn't need to have that import.
I think you worked it out !

regards .... willy
<https://about.me/maninder.s.kumar?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=edit_panel&utm_content=thumb>
Maninder Kumar
about.me/maninder.s.kumar
<https://about.me/maninder.s.kumar?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=edit_panel&utm_content=thumb>


On Mon, Jun 29, 2020 at 2:17 AM Maureen Moore <makam...@gmail.com> wrote:

> I thought that if you add an import to the controller.ts file, that it had
> 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?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/angular/635c3250-2778-46ed-aa72-1d441908ddefo%40googlegroups.com
> <https://groups.google.com/d/msgid/angular/635c3250-2778-46ed-aa72-1d441908ddefo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/CABOHK3QO9P8Xo8jYcHbbBGA9Y%3DG2Zz7CLfbPk%2Bfzjt4Yc2XACA%40mail.gmail.com.

Reply via email to