Thanks! пятница, 31 октября 2014 г., 0:01:52 UTC+3 пользователь Rob Dodson написал: > > 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] > <javascript:>> 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] <javascript:>. >> 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/6e1723d3-2f46-4e0d-a75d-f646222e7e0b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
