Skip to content

Load js files dynamically from code #5781

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

Closed
Ristaaf opened this issue Mar 31, 2017 · 2 comments
Closed

Load js files dynamically from code #5781

Ristaaf opened this issue Mar 31, 2017 · 2 comments

Comments

@Ristaaf
Copy link

Ristaaf commented Mar 31, 2017

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [*] feature request

Versions.

1.0.0

Desired functionality.

We need to load different culture files depending on selected culture on our page, currently in our systemjs/gulp based project we have the following construct, this is just one example, we have similar situations with other packages, where we do not know until runtime what to actually load.

System.import("kendo/cultures/kendo.culture." + getLocale() + ".min.js")
.then(() => System.import("kendo.core.min")
.then(() => kendo.culture(getLocale());

The feature request here is that I cannot really find any documentation on how to solve this issue, I really hope it can be done already in angular-cli so my hope is that this feature request is for better documentation.

@filipesilva
Copy link
Contributor

Heya, according to your answer in #6164 (comment) I think your question has been answered. If you're still having trouble let me know.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants