Polymer elements within angular 2 component

前端 未结 2 1053
执念已碎
执念已碎 2020-12-15 00:27

I have a set of custom polymer elements, that I would like to use within an angular 2 application.

It seems like there\'s a problem concerning the content tag of the

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 01:23

    Check out https://www.npmjs.com/package/@vaadin/angular2-polymer, which should resolve most issues in integrating Polymer elements to Angular 2.

    User guide: https://github.com/vaadin/vaadin-core-elements/blob/master/docs/angular2.adoc

    Tutorial (draft): https://github.com/vaadin/angular2-polymer/blob/d4581e8fd82841eea84ef40e16e262a12ee4b082/docs/tutorial.adoc

    Better shady DOM support is waiting to be merged from a separate branch (should be merged and released within two weeks): https://github.com/vaadin/angular2-polymer/tree/feature/polymer-dom-adapter

    It would be great if you could try it out and see if it works for you!

    Eventually, the documentation will be published at https://vaadin.com/docs/

提交回复
热议问题