Skip to content

can't bind ng model error overlay is not showing in the ui when i have commented out the imported FormModule in a lazy loaded module #18209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
irfanit93 opened this issue Jul 10, 2020 · 2 comments

Comments

@irfanit93
Copy link

irfanit93 commented Jul 10, 2020

Environment:
image
Steps to reproduce:

  1. Create project with angular cli, ng new <project_name> --routing
  2. Then, ng generate module home --route home --module app.module
    3.Then i modified the path of the lazy loaded module from "home" to "", so that my home page is lazy loaded.
    image
  3. Then ng serve
  4. My home page(lazy loaded module component) has two way data binding using ng Model on input field, so i imported FormModule in my lazy loaded module. When i uncommented the import code of FormModule and the "FormModule" in the imports array, the ui reloads. It should show can't bind to ngModel error in both ui and command prompt since i am commenting out the FormModule code. But the error is showing only in command prompt. The error is not showing in the ui.

My Lazy Loaded Module code:(commented out)
image

Hope you will fix it soon.

@irfanit93 irfanit93 changed the title can't bind ng model error overlay is not showing in the ui when i have commented out the imported FormModule in a lazy loaded module package can't bind ng model error overlay is not showing in the ui when i have commented out the imported FormModule in a lazy loaded module Jul 10, 2020
@alan-agius4
Copy link
Collaborator

Duplicate of #17487

@alan-agius4 alan-agius4 marked this as a duplicate of #17487 Jul 10, 2020
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants