I have been doing research for Polymer's best practices. Here is what I 
have so far:

1) Sibling elements do not need to know about each other. They should 
communicate between a master element:

                          element Master
                          |            |
                     element foo      element bar

2) for downward directional flow, using bindings. So, when element master 
communicates with element foo, use a one way data binding:

                      <element-master> 
                         <element-foo foo-property="[[masterProperty]]">
                         <element-bar bar-property="[[masterProperty]]">
                      </element-master>

If `element-foo` or `element-bar` send data back upwards, use emit a event. 

This model eliminates the use of two way binding because upward data flow 
is using events instead of 2 way binding.   My question for #2 is, when is 
it valid/proper use to use two way data binding? 


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/4f515b5d-db99-4955-bb0e-780163933fc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to