I am new to angular 2 and built a few components. Is there a way to convert those components to webcomponents ? Is there a way to transpile this first and then made available in other (nonangular) web applications for reuse?
Asked
Active
Viewed 709 times
1 Answers
0
You can use web components in Angular2 (with some limitations) but there is no way to transpile or convert it automatically in any way.

Günter Zöchbauer
- 623,577
- 216
- 2,003
- 1,567
-
So Polymer would be suitable to create web components which I can use in angular 2 and non angular sites? – bier hier Apr 29 '16 at 05:29
-
There are a few issues but it's working and Angular will improve interoperability with Polymer and other custom elements. See also http://stackoverflow.com/questions/35356888/polymer-paper-menu-with-angular2, http://stackoverflow.com/questions/36456554/passing-properties-to-polymer-1-0-from-angular-2, http://stackoverflow.com/questions/34779175/polymer-elements-within-angular-2-component/34782260#34782260, http://stackoverflow.com/questions/36864501/using-paper-datatable-in-angular2/36864636#36864636 – Günter Zöchbauer Apr 29 '16 at 05:54
-
is this answer still true after angular2 final release? We cannot convert an angular2 app to a webcomponent and import it into another web application? – Poku Sep 29 '16 at 09:06
-
1No, such plans were dropped. It doesn't look like it's planned for later. That might change of course. – Günter Zöchbauer Sep 29 '16 at 09:08