Angular 2和Polymer Web Components - 不一致的行为

时间:2016-11-03 17:02:06

标签: angular polymer web-component

以下是四个Plnks,说明了将Polymer paper-input <link>导入插入Angular 2应用程序的四种不同方法

工作

paper-input link in a routable component html file

paper-input link in index.html

不工作

paper-input link in a component template html file

paper-input link in a component template string

他们都是基于英雄演示之旅。

聚合物整合的唯一区别是<link>用于导入纸张输入。我很高兴看到两个无法正常工作的人失败了:)

两个不起作用的东西似乎加载了纸张输入的导入,使浏览器忽略它,然后是未定义的<paper-input>标记。

Enabling full shadow-dom似乎也没有让它们发挥作用。

这似乎有点像Angular 2解析和编译各种类型模板的方式的错误,但我不太了解NG2解析甚至开始查看源代码。有什么想法吗?

0 个答案:

没有答案