Nice article! Although I have a doubt with the 5th point. Correct me if I am wrong. With the above syntax won't we get the below error -
core.js:6456 ERROR Error: Uncaught (in promise): Error: Cannot find module...
I feel its better to use the promise import('./progress/progress.module').then(m => m.ProgressModule)
Definitely, newer versions of angular allow to use imports in lazy loading which I also prefer.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice article!
Although I have a doubt with the 5th point. Correct me if I am wrong.
With the above syntax won't we get the below error -
core.js:6456 ERROR Error: Uncaught (in promise): Error: Cannot find module...
I feel its better to use the promise
import('./progress/progress.module').then(m => m.ProgressModule)
Definitely, newer versions of angular allow to use imports in lazy loading which I also prefer.