You need to grab the contents out of your import and add them to the
document (or I guess element if you're inside a polymer element). Here's an
example: https://github.com/robdodson/ref-template-example

On Tue, Oct 28, 2014 at 1:21 PM, Антон Мирошниченко <[email protected]>
wrote:

> I want create template libraray in isolated file.
>
> ./my-components/templates.html
>
> <template id="overTemplate">
>     <div on-mouseover="{{mouseOverHandler}}">OVER</div></template>
> .....
>
> And connect this file in my polymer-element:
>
> <link rel="import" href="./my-components/templates.html">
>
> Then use this template:
>
> <template bind ref="overTemplate"></template>
>
> How to do it?
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/acfa3cec-bd3a-4852-b049-e4d2bfb02f8f%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/acfa3cec-bd3a-4852-b049-e4d2bfb02f8f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAJj5OwDerThGhp%2BPmwz_m2o4x_XCHHM%2Bpz-VoVcZRF560NSMog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to