Skip to content

Does ngTools/webpack support loadchildren routes that are functions? We can only get it working with strings #9372

Closed
@factoidforrest

Description

@factoidforrest

I work at a major company that funds angular development.

Long story short, we are doing some fancy lazy loading with the router. Rather than use a string, we use a function that returns a promise. Works great in JIT mode, and it's working well in AOT with the old [email protected] plugin, but the ngTools/webpack compiler complains no matter how we organize things. Does the ngTools plugin support using functions for lazy routes, or does it only support using strings that it can evaluate at build time?

@sokra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions