Can i ask? ref attribute work only for templates in polymer-element shadow? 
Or can work in global dom?

пятница, 31 октября 2014 г., 16:16:16 UTC+3 пользователь Антон Мирошниченко 
написал:
>
> 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]> 
>> 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/93ad0dac-7ace-474c-a33a-ceda3187803b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to