<ctr-textbox name="Name">
<val>joman mahmoud</val>
</ctr-textbox>
我的聚合物是
<template>
<input type="text" dir="auto" name="{{name}}" value="{{value}}" class$="{{fnJoin('form-control ', class)}}" />
</template>
<script>
Polymer({
is: "ctr-textbox",
properties: {
type: {
type: String,
value: "ctr",
reflectToAttribute: true
},
name: {
type: String,
value: "",
reflectToAttribute: true
},
class: {
type: String,
value: '',
reflectToAttribute: true
},
value: {
type: String,
value: ''
}
},
ready: function () {
}
});
</script>