如何处理纸张内聚合物铁页内的模型。请参阅下面的代码:
<paper-tabs selected="{{selected}}">
<paper-tab>Tab 1</paper-tab>
<paper-tab>Tab 2</paper-tab>
</paper-tabs>
<iron-pages selected="{{selected}}">
<div>
{{model.tab1.content}} //not working
</div>
<div>
{{model.tab2.content}} //not working
</div>
</iron-pages>
<script>
Polymer({
is: "my-element",
properties: {
model: {
type: Object,
value: {tab1...}
}
}
});
</script>
因此,model.tab1.content在iron-pages中不起作用。