我正在尝试使用hidden <iron-list>,但是我需要了解为什么它的渲染不会更新。
这是相关的问题:https : //github.com/PolymerElements/iron-list/issues/263
这是代码:http : //jsbin.com/vagumebupe/9/edit?html,控制台,输出
<!doctype html>
<head>
<meta charset="utf-8">
<base href="https://polygit.org/polymer+:master/components/">
<script src="webcomponentsjs/webcomponents-lite.min.js"></script>
<link href="polymer/polymer.html" rel="import">
<link rel="import" href="iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="iron-ajax/iron-ajax.html">
<link rel="import" href="paper-icon-button/paper-icon-button.html">
<link rel="import" href="iron-icon/iron-icon.html">
<link rel="import" href="iron-icons/iron-icons.html">
<link rel="import" href="paper-styles/color.html">
<link rel="import" href="paper-styles/typography.html">
<link rel="import" href="app-layout/app-toolbar/app-toolbar.html">
<link rel="import" href="paper-menu/paper-menu.html">
<link rel="import" href="paper-item/paper-item.html">
<link rel="import" href="paper-badge/paper-badge.html">
<link rel="import" href="iron-list/iron-list.html">
<style is="custom-style">
body {
@apply(--layout-fullbleed);
}
</style>
</head>
<body unresolved>
<x-app></x-app>
<dom-module id="x-app">
<style>
:host {
@apply(--layout-fit);
@apply(--layout-vertical);
@apply(--paper-font-common-base);
font-family: sans-serif; …Run Code Online (Sandbox Code Playgroud)