angular-cli icon indicating copy to clipboard operation
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

Open irfanit93 opened this issue 6 years ago • 2 comments

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 avatar Jul 10 '20 08:07 irfanit93

Duplicate of https://github.com/angular/angular-cli/issues/17487

alan-agius4 avatar Jul 10 '20 11:07 alan-agius4

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.