Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Article suggestion: MDV examples and best practices #98

Closed
coding2012 opened this issue Jul 12, 2013 · 4 comments
Closed

Article suggestion: MDV examples and best practices #98

coding2012 opened this issue Jul 12, 2013 · 4 comments

Comments

@coding2012
Copy link

I'm interested in the "best practices" features around Polymer specific MDV features:
Passing in Javascript objects, responding to change in custom elements, making changes to data inside the element, and automatic update of the original object.

Another way to describe this is to offer some guidance on two custom elements interacting (not directly with each other) but through using shared data and/or events.

One silly example would be two custom elements, one providing a slider bar (or three for RGB), another displaying a color. The color is updated live by using a shared JS object for both custom elements.

@ebidel
Copy link
Contributor

ebidel commented Jul 12, 2013

Love the idea.

The slider example is probably best suited for data binding within a <polymer-element>, but there are many "best practices" docs we could write for MDV (like #79).

In the meantime, there's some good info on communicating between elements @ https://docs.google.com/presentation/d/1VbhT4fU-xicGiRzfq2oXUdGawD9nzwhAFfpij5kklzU/pub?start=false&loop=false&delayms=3000

@jkomoros
Copy link

I wholeheartedly agree with this suggestion. :-)

On Fri, Jul 12, 2013 at 9:26 AM, Ravi L. notifications@github.com wrote:

I'm interested in the "best practices" features around Polymer specific
MDV features:
Passing in Javascript objects, responding to change in custom elements,
making changes to data inside the element, and automatic update of the
original object.

Another way to describe this is to offer some guidance on two custom
elements interacting (not directly with each other) but through using
shared data and/or events.


Reply to this email directly or view it on GitHubhttps://github.com//issues/98
.

@ebidel
Copy link
Contributor

ebidel commented Jul 19, 2013

Here are better examples:http://jsbin.com/orumol/4/edit

@robdodson
Copy link
Contributor

Rolling this into #339

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants