Skip to content

Dynamically load remote js file #356

Closed

Description

@mburger81

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

Activity

  1. ysqi commented on Mar 3, 2016

    @ysqi

    +1

  2. PatrickJS commented on Mar 12, 2016

    @PatrickJS
    Owner

    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

  3. ebeal commented on May 20, 2016

    @ebeal
    Collaborator

    please open again if this is still an issue

  4. anuteja commented on Jul 11, 2016

    @anuteja

    any working example ?

  5. ENeoW commented on Feb 2, 2017

    @ENeoW

    one example, please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions