【发布时间】:2016-03-17 08:31:27
【问题描述】:
我期待看到hello,但我看到的是{{someVar}}
<my-parent some-var="hello">
<div>{{someVar}}</div>
</my-parent>
我将some-var="{{someVar}}" 传递给<content>:
<dom-module id="my-parent>
<template>
<content some-var="{{someVar}}"></content>
</template>
<script> Polymer({is: "my-parent"}); </script>
</dom-module>
我需要绑定这个变量,这样如果我嵌入另一个组件,而不是
<div>,嵌入的组件可以更改父级的属性
【问题讨论】:
标签: html polymer shadow-dom