Why do I get an Internal Dartium Exception when using custom elements?

老子叫甜甜 提交于 2019-12-06 04:58:51

You are seeing this error because your HTML says extends="li" but the Dart code only extends PolymerElement.

If you use an extends attribute in your polymer-element, then your Dart class must also extend the same kind of element.

To fix the problem in the question, change the Dart class:

@CustomTag('person-tag')
class PersonTag extends LIElement with Polymer, Observable {

Now PersonTag really does extend <li>.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!