-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data binding with JavaScript no longer available in 1.0 #1796
Comments
I think imperative data-binding is not supported in 1.0 per #1778 |
According to @kevinpschaaf this is "currently" not supported. Perhaps it will be supported in the future? |
Not sure... But given that data is bounded on registration, I'm experimenting with a (bit hackish) way to data bind imperatively by defining the prototype chain before registration on the fly. Will post results. On 9 June 2015 15:53:42 GMT+08:00, AKI RODIC notifications@github.com wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
Has there been any work on this? Our app hinges on the ability to bind properties to elements created dynamically. |
We also use this heavily and would like to know if any work or decisions have been made on this. |
Would also love to see this implemented +1 |
1 similar comment
Would also love to see this implemented +1 |
+1 |
I believe this feature is in the Polymer owners' radar and inside the dev timeline. For certain instances, a (somewhat hackish) workaround that I used to employ was this: #2131 (comment). Later, I just made some workflow (and mindset) changes that for most times replaced the need for late binding completely. I'll suggest that, or waiting for an official (and true) late-binding API to be released. |
I also have a problem with this: I have two Polymer elements which ignore that they are bound to the same object: https://jsfiddle.net/warpech/g4xoqaff/3/ I know that this can be worked around by wrapping them in a single Polymer element, but can't have that workaround. I would like to use a JS API to bind them together. |
@warpech this is possible with a little extra glue– you need to keep track of which components share that object then Also related to this discussion are the existing polymer/src/standard/notify-path.html Lines 333 to 365 in acdfc1e
|
Closing per #3460 (comment) This API shipped in Polymer 2. |
👎 What about Polymer 1.*? It is still being supported. |
In 0.5 there was a handy built-in function
this.bindProperty()
as well asthis.bind()
It appears that equivalent functions no longer exist in 1.0. Perhaps this functionality is provided in undocumentedPolymer.Bind
but without documentation it is hard to tell.The text was updated successfully, but these errors were encountered: