platosha / angular-polymer

Angular 2 support for Polymer elements
https://www.npmjs.com/package/angular-polymer
Apache License 2.0
220 stars 44 forks source link

Can't get angular2-polymer working on angular 2.3.1 #119

Closed yobud closed 7 years ago

yobud commented 7 years ago

Hi! Thank you for your awesome work!

Registering polymer elements as show in the readme no longer works on angular 2.3.1, because no function call is allowed in NgModule declaration.

ERROR in Error encountered resolving symbol values statically. Calling function 'PolymerElement', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function

I absolutely don't know how to make angular2-polymer working again, as PolymerElement function does some complex stuff.

Thank you for your help,

Jérémy

Chabane commented 7 years ago

See the issue #104

yobud commented 7 years ago

Thank you, got it working by using shadow dom. Hope it'll not be too slow with polyfill.