Skip to content
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

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

Open
khaled-ansary opened this issue Sep 13, 2017 · 4 comments
Open

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

khaled-ansary opened this issue Sep 13, 2017 · 4 comments

Comments

@khaled-ansary
Copy link

khaled-ansary commented Sep 13, 2017

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.

@NgOnInit
Copy link

NgOnInit commented Apr 3, 2018

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.

@bostondevin
Copy link

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

node_modules/.bin/tsc -p tsconfig.json

@DatsGawas
Copy link

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

@pranavjogawade
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants