This is the correct functionality: in Polymer 1.0 (0.8+ actually) bindings
must span the entire content of the tag
<https://github.com/Polymer/polymer/blob/master/PRIMER.md#basic-property-binding>
.

Michael

On Sat, Jun 13, 2015 at 4:53 AM, <[email protected]> wrote:

> I am unable to use the attribute of an element individually, every time i
> have to enclose it with a HTML tag.
>
> example :
> <polymer-element name="hello-world" attributes="owner">
> <template>
> <p>This is {{owner}} color-picker.
>     He likes the color</p>
> </template>
> <script>
> Polymer({
> is:"hello-world"
> });
> </script>
> </polymer-element>
>
> this will render --  This is {{owner}} color-picker
>
> But when i enclose it with a span or any other html tag it works correctly.
> <template>
> <p>This is <span>{{owner}}</span> color-picker.
>      He likes the color</p>
> </template>
>
> This will render correctly with the given input. Is this the
> functionality? or if am i am doing anything wrong.
>
> 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/0d1b42de-a38f-45be-b02f-530b14aaa64b%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/0d1b42de-a38f-45be-b02f-530b14aaa64b%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/CACi5S_2O3mrFHN9cVOLb0y63P4Uc8xDY3T4s0uFFEkiixST7yA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to