Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Aurelia HTML Import Template Loader
_importDocument(entry) {
return new Promise((resolve, reject) => {
let frag = DOM.createDocumentFragment();
let link = DOM.createElement('link');
link.rel = 'import';
link.href = this.linkHrefPrefix + entry.address;
frag.appendChild(link);
this._importElements(frag, link, () => resolve(link.import));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment