3

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

4

1 回答 1

1

DeferredLibrary 应该可以解决这个问题(可能仍然存在一些错误或限制)目前不支持在 Dart 中使用未在编译时导入的代码。

于 2014-07-25T09:11:21.263 回答