We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was looking at the answer to #73 and one suggestion was to use System.import so I tried it in my main.js and it failed with System is not defined.
System.import
System is not defined
Next, I attempted to tweak babel settings, install a babel plugin, install systemjs but nothing seemed to work.
The text was updated successfully, but these errors were encountered:
It depends on the loader you're acually using. Aurelia has an abstracted loader. I think it should be safe to use that. Docs: http://aurelia.io/hub.html#/doc/api/aurelia/loader/1.0.0/class/Loader
Example:
import {inject, Loader} from 'aurelia-framework'; @inject(Loader) export class MyClass { constructor(loader) { this.loader = loader; } myMethod() { this.loader.loadModule('module-id').then((module) => { doSomethingWith(module); }); } }
(disclaimer: "hand-written", may contain errors 😏 )
Sorry, something went wrong.
This worked great for me. Thanks @Thanood!
No branches or pull requests
I was looking at the answer to #73 and one suggestion was to use
System.import
so I tried it in my main.js and it failed withSystem is not defined
.Next, I attempted to tweak babel settings, install a babel plugin, install systemjs but nothing seemed to work.
The text was updated successfully, but these errors were encountered: