0
Iam新增聚合物。我创建了一个组件应用程序标签。内嵌HTML聚合物导入外部模板
<link rel="import" href="https://polygit.org/polymer+^1.9.1/webcomponentsjs+^0.7.0/components/polymer/polymer.html">
<dom-module id="app-tag">
<template>
<style></style>
<h1 class="head-mine">This is the name Tag</h1>
</template>
</dom-module>
<script src="app_tag.js"></script>
它工作正常。但是,如果我的模板非常大,我想写seoerate html文件使用它。我该如何解决这个问题。?
喜Vijayyes第二部分是在另一个文件中使用。聚合物让您为每个组件创建一个新文件。 –