我想在独立文件中创建模板库。如何在聚合物中导入模板?
./my-components/templates.html
<template id="overTemplate">
<div on-mouseover="{{mouseOverHandler}}">OVER</div>
</template>
.....
在我的高分子元素连接此文件:
<link rel="import" href="./my-components/templates.html">
然后用这个模板:
<template bind ref="overTemplate"></template>
如何去做吧?