angular-dynamic-module-loading icon indicating copy to clipboard operation
angular-dynamic-module-loading copied to clipboard

how to create lazy.module.js file for a module

Open khaled-ansary opened this issue 7 years ago • 4 comments

Hi,

Thanks for a nice example for dynamic module loading. How can I create the lazy.module.js file. Could you please give an example for it? Thanks.

khaled-ansary avatar Sep 13 '17 09:09 khaled-ansary

HI, This is a nice example. Is there no strengthened version of this project? How can I create the lazy.module.js file. Could you please give an example for it? Thanks.

NgOnInit avatar Apr 03 '18 11:04 NgOnInit

In your project folder (same level as package.json) run this in the terminal:

node_modules/.bin/tsc -p tsconfig.json

bostondevin avatar May 30 '18 15:05 bostondevin

Hi @bostondevin If I fire this 'node_modules/.bin/tsc -p tsconfig.json' command I found JS but the format of my JS file and your JS file is different that's why the code is not working. can you help me? this error I am getting. core.js:12501 ERROR SyntaxError: Unexpected token import

DatsGawas avatar Feb 27 '19 08:02 DatsGawas

What about multiple files? i have multiple files within single module. How to load all?

pranavjogawade avatar Mar 30 '19 20:03 pranavjogawade