Skip to content
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

[0.9] How to dynamically import elements? #1554

Closed
zerodevx opened this issue May 17, 2015 · 2 comments
Closed

[0.9] How to dynamically import elements? #1554

zerodevx opened this issue May 17, 2015 · 2 comments

Comments

@zerodevx
Copy link

In 0.5.5, I used to dynamically import elements by calling Polymer.import, then inserting that element into the local DOM.

May I ask how can I do that in 0.9?

Thanks so much.

@IntranetFactory
Copy link

There is a new utility function importHref(href, onload, onerror) to dynamically import one component. See https://www.polymer-project.org/0.9/docs/devguide/utility-functions.html

@zerodevx
Copy link
Author

Yes thank you, I must have missed this. I will test this out. Thanks again.

On 17 May 2015 18:50:54 GMT+08:00, Martin Amm notifications@github.com wrote:

There is a new utility function importHref(href, onload, onerror) to
dynamically import one component. See
https://www.polymer-project.org/0.9/docs/devguide/utility-functions.html


Reply to this email directly or view it on GitHub:
#1554 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants