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

Load lazy modules on remote server #9

Open
bjornharvold opened this issue Sep 5, 2019 · 3 comments
Open

Load lazy modules on remote server #9

bjornharvold opened this issue Sep 5, 2019 · 3 comments

Comments

@bjornharvold
Copy link

Hi

I am developing consumable web components that are meant to live on external sites. They will include a single javascript file from our site to be able to use our components.

If I make some of the code modular and it gets time to load one of these modules on their site and the modules don't live locally on their server, how will ngx-loadable know to go to my CDN to load the module from?

Thank you
Bjorn

@bjornharvold
Copy link
Author

Hi @mohammedzamakhan

Any thoughts on this?

Cheers

@mohammedzamakhan
Copy link
Owner

Hi @bjornharvold

This should be the same as lazy loading routes. If you are able to achieve that, then this is doing the same thing.

@bjornharvold
Copy link
Author

We don't have access to the URL on the remote site. These are web components with internal state only. At some point, we want to load a lazy module but since the site is not ours, not quite sure how to tell it to go to another site to grab the module. I had a look at at this project that you pinned: https://github.com/angular-extensions/elements and it loads via url. Can we do something similar with ngx-loadable?

Thank you

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