Angular2 Router - loadChildren from URL

I am using the Angular CLI and would like to use the Angular plugin.

Is it possible to download a package file from a URL?

I tried..

 {
        path: 'external', loadChildren: () =>
            System.import(`https://xxxee/bundle.js`)

    }

but webpack can't solve it

Any ideas?

thank

+4
source share

Source: https://habr.com/ru/post/1671019/


All Articles