-
Notifications
You must be signed in to change notification settings - Fork 407
registerElement
should support callbacks coming from deep prototype chains
#52
Comments
+1 On Sun, Mar 1, 2015 at 3:30 PM Rado Kirov notifications@github.com wrote:
|
Hi, need to be patched
Can you please share the patch... |
@kingcody . Thanks, I got the youtube-app working after @rkirov shared the patches. But i'm still not able to get a simple polymer button working inside an angular 2.0 component directive. Can you possibly try it out. |
@tkhemani Working in FF, but not in Chrome. |
@kingcody, are you saying u were able to get a polymer button working inside an angular 2.0 component directive? Can you share the code. |
I'm having this issue too, again like @kingcody when dealing with polymer elements but this time the Google Web Component ones. I did see a pull request at #31 which looks like it might have tried to fix the problem but implementing their code into my project stopped the console error but still didn't render the component. I also tried the solution posted in here before but same result as the pull request. They do work in FF but not Chrome for some reason though. |
@JoshAntBrown Yes, there is no such issue in FF, but it seems to me the property binding like this
does not work. The reason that customer element does not work in Chrome is probably due to angular/angular#1442 |
Yes, you need a fix for both the zone.js and Angular issues before custom elements work. I have all this working locally, but don't have time to put together a tested PR. |
@justinfagnani you can send me "some" code and I'll try to clean and PR if you like |
The following line:
zone.js/zone.js
Line 663 in 26a4dc2
Checks
if (opts.prototype[callback])
and then usesObject.getOwnPropertyDescriptor(opts.prototype, callback)
to retrieve it. If the callback comes from the prototype chain we cannot usegetOwnPropertyDescriptor
.The text was updated successfully, but these errors were encountered: