notwaldorf / ama

:raising_hand: Ask @notwaldorf anything!
94 stars 13 forks source link

Polymer 2.x Cheat Sheet - Extending an element #68

Closed rene-lindner-isw closed 7 years ago

rene-lindner-isw commented 7 years ago

Found your Cheat Sheet while looking for an solution to extend iron-ajax.

Tried extends customElement.get('parent-element'), but got an error that customElement does not exist. Shouldn't it be extends window.customElements.get('parent-element') instead?

Thanks for the sheet, helped me alot :)

notwaldorf commented 7 years ago

Oh yeah, that's totally a typo! Thanks for catching it :) Fixed!