angular-cli
angular-cli copied to clipboard
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
Environment:
Steps to reproduce:
- Create project with angular cli, ng new <project_name> --routing
- 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.

- Then ng serve
- 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)

Hope you will fix it soon.
Duplicate of https://github.com/angular/angular-cli/issues/17487
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.