阅读背景:

在Polymer 1.0中将绑定传递给子元素的更好方法

来源:互联网 

I have the following element:

我有以下元素:

<link rel="import" href="/go.html?url=../my-control/my-control.html" />

<dom-module id="my-page">
   <template>
       <!-- pass the value down to the children element -->
       <my-control my-property="{{myProperty}}"></my-control>
   </template>

   <script>
      Polymer({
         is: 'my-page',

         properties: {
            myProperty: {
               type: String,
               value: '',
               reflectToAttribute: true
            }
         }
      });
   </script>
</dom-module>
<link



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: