Skip to content

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

Description

@khaled-ansary

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.

Activity

  1. NgOnInit commented on Apr 3, 2018

    @NgOnInit

    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.

  2. bostondevin commented on May 30, 2018

    @bostondevin

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

    node_modules/.bin/tsc -p tsconfig.json

  3. DatsGawas commented on Feb 27, 2019

    @DatsGawas

    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

  4. pranavjogawade commented on Mar 30, 2019

    @pranavjogawade

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions