polymer-elements

Disqus comments don't work in a polymer custom element

 ̄綄美尐妖づ 提交于 2019-12-19 11:45:19
问题 I don't know how to make a disqus comments code to work inside of my custom elements. Structure of my site: | index.html --------\ my-app.html (custom element) ----------------\ my-testView1.html (custom element) ----------------\ my-testView2.html (custom element) I need to put disqus comments inside my-testView1.html and my-testView2.html Structure of index.html : <body> <my-app> <div class="disqusClass1" id="disqus_thread"></div> <div class="disqusClass2" id="disqus_thread"></div> <my-app>

How get the value of this Polymer element?

﹥>﹥吖頭↗ 提交于 2019-12-12 03:09:36
问题 I have a simple Polymer element, that I use in a dom-repeat template. <link rel="import" href="../../bower_components/polymer/polymer.html"> <dom-module id="flow-element" attributes="name kind"> <template> <paper-material class="flow" elevation="1"> <span> //delete button <paper-button class="delete" on-click="handleClick({{name}})"> <iron-icon icon="delete" ></iron-icon> </paper-button> </span> <paper-item id="name">{{name}}</paper-item> <paper-item id="kind">{{kind}}</paper-item> </paper