我们可以在 Iron-component-page 上加载多个源来生成演示 DOCS。
例如:
<iron-component-page sources='["page1.html", "page2.html","page3.html"]'></iron-component-page>
提前致谢。
最佳答案
创建文件 all-imports.html
然后在 src
中使用它index.html 文件的属性
全部进口.html
<link rel="import" href="page1.html">
<link rel="import" href="page2.html">
<link rel="import" href="page3.html">
索引.html
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>paper-input</title>
<script src="<>/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="<>/iron-component-page/iron-component-page.html">
</head>
<body>
<iron-component-page src="all-imports.html"></iron-component-page>
</body>
</html>
关于angularjs - polymer |如何在铁组件页面上加载多个源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34208140/