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

Dynamically load remote js file #356

Closed
mburger81 opened this issue Feb 26, 2016 · 5 comments
Closed

Dynamically load remote js file #356

mburger81 opened this issue Feb 26, 2016 · 5 comments

Comments

@mburger81
Copy link

I need to create different widgets for our dashboard which are all components. Some of this widgets need to load external javascript files, how can I load this files from component dynamically. I don't want to load them all from index.html, I would load them only on using the component so is there a possibility to load it from component on require?
Should I try to do that with systemjs?

thx

@ysqi
Copy link

ysqi commented Mar 3, 2016

+1

@PatrickJS
Copy link
Owner

PatrickJS commented Mar 12, 2016

load the component with es6-promise-loader and make sure the imports to the js files are only in the entry file of the component

@ebeal
Copy link
Collaborator

ebeal commented May 20, 2016

please open again if this is still an issue

@ebeal ebeal closed this as completed May 20, 2016
@anuteja
Copy link

anuteja commented Jul 11, 2016

any working example ?

@ENeoW
Copy link

ENeoW commented Feb 2, 2017

one example, please

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

6 participants