-
Notifications
You must be signed in to change notification settings - Fork 33
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
Support Angular<->Polymer template data host bindings #36
Comments
To those subscribing to this issue, this feature is now implemented! It still needs testing before I bundle it in the next release though, a lot of things changed to support property binding. The good news is that with this feature, |
Available in 1.3.0-beta.0. Feature complete, just needs testing before I consider it stable. Open an issue if you find any problems with it! |
@hotforfeature ... do you have a worked example anywhere with this pattern implemented? Thanks. |
Currently it's possible to bind events to a polymer template:
Though it is not possible to bind data properties to any elements in a Polymer template. This is a pain point in particular for vaadin-grid's selection column.
In Polymer, the host element's template sets up bindings on its children by setting the
__dataHost
property. We're emulating this in the polymer template directive, though we only get the host afterngOnInit()
, which can fire after Polymer has already done some binding (looking at you again vaadin-grid...)The TL;DR is I want this Polymer template:
To match this Angular template in behavior:
I think this can be achieved by going through all the children of the Angular component and seeing the
__dataHost
property like Polymer does insetupBindings()
. Ideally this will completely eliminate the need for<template polymer>
.The text was updated successfully, but these errors were encountered: