有人可以帮我吗? im(完全)新聚合物。而且我在渲染内容方面遇到了麻烦。
一页名为" o-primeiro-demo.html"没有呈现。当我通过localhost:8080或localhost / php获取内容时,我只能获取index.html文件中的内容。
这是代码:
index.html(我添加的内容。其余的是inicial设置)
<link rel="import" href="components/polymer/polymer.html">
<link rel="import" href="o-primeiro-demo.html">
<body>where is "o-primeiro-demo.html" data?</body>
邻primeiro-demo.html
<link rel="import" href="https://polygit.org/components/polymer/polymer.html">
<link rel="import" href="https://polygit.org/components/iron-icon/iron-icon.html">
<dom-module id="o-primeiro-demo">
<template>This is the first test</template>
<script>Polymer ({ is : "o-primeiro-demo" }); </script>
</dom-module>
bower.json
"name": "o-primeiro-demo",
答案 0 :(得分:1)
如果我理解正确,您正试图在您的页面中显示o-primeiro-demo。
对于Polymer,要显示页面,您必须将其标记在带有标记的页面上。
如果你想要出现,你需要写:
<Context antiJARLocking = "true" path="/somepath" />
在您这样做之前,所有内容都是惰性的。它不存在,也没有人知道它。