yi chen
yi chen

Reputation: 241

Dart polymer custom element dynamically linking

I'm working with polymer elements in dart. I'm doing a single page web app. I'm wondering if there's a way to dynamically link the element I need for this page instead of linking (loading the source) all in the front. I know there is a deferred class that you can declare but I'm not sure it works with HTML template too. Any wayto dynamically link the element once you need it?

Thanks, Yi

Upvotes: 3

Views: 213

Answers (1)

Günter Zöchbauer
Günter Zöchbauer

Reputation: 657058

DeferredLibrary should work for this (might still have some bugs or limitations) Using code in Dart that wasn't imported at compile time is currently not supported.

Upvotes: 1

Related Questions