How to include external JavaScripts dynamically


Hey there,

I have to load an external JS file. This script is only usable once, so the src url is created dynamically. In ionic1 I’ve used angular-load to load the scripts. Now I’m trying it with Ionic2.

I found code snippets like this:

    System.import('externalScriptUrl').then((Module) => {
        var module = new Module();
        // ...

System is not defined… So what I have to do to include System? Is this the right way or is there a better way?