Are you thinking of data binding or the observe block?

You can bind to the objects in the array using array notation:

    {{selected[foo]}}

This should update when selected, foo, or the value at selected[foo]
changes.

If you want to iterate over the items in an Object / associative array,
it's a little trickier.


Can you clarify what you tried and what you wanted it to do?




On Tue, Jul 29, 2014 at 1:07 PM, <[email protected]> wrote:

> Hi,
>
> Can an associative array be observed with Polymer?
>
> E.g.
>
>  selected = {};
>  selected["keyOne"] = {};
>  selected["keyOne"].name= "ONE";
>
>
> Kr,
> Techar
>
>  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/8925ad52-0898-4372-b11f-0d1d33b0791c%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/8925ad52-0898-4372-b11f-0d1d33b0791c%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/CADSbU_x-RDxgQzrJPLZq-bnHgXUYmCPrh4c4hqhnzNQy7gBmBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to