angularjs - polymer |如何在铁组件页面上加载多个源?

标签 angularjs model-view-controller backbone.js polymer web-component

我们可以在 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/

相关文章:

java - Model View Controller : Where to conditionally fetch new data into model?

javascript - Backbone.View 事件只触发一次

javascript - 将参数传递给主干中的事件

javascript - 这两个笨蛋有什么区别? (Angularjs,Angular-UI)

javascript - 使用 JSON 维护 RESTful url 的正确 Angularjs 方法

javascript - 接受字符串的 Angular 指令

javascript - 使用 MVC 以可重用的方式将客户端逻辑与服务器端逻辑分开

python - qt pyside - qsql*model、qabstractitemmodel 和 qtreeview 交互

javascript - 在 Backbone.js 和 Underscore.js 中绑定(bind)回调

javascript - 在 Javascript 中将变量与变量值结合起来