Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has anyone got angular 2.0 alpha working with Polymer Elements?

I've been unsuccessfully trying to get the Angular 2.0 + Polymer Component Demo (youtube-app) from ng-conf working, but it seems to require patches to zoom.js and angular itself, which i'm not able to find.

Need help patching the two for the app to work. OR if anyone can share any other working example of Angular with Polymer Elements, that'll do.

like image 317
Tarun Avatar asked Mar 23 '15 19:03

Tarun


2 Answers

Add this patch to zone.js. It will come in the next version of angular2 allowing you to use the two together.

Source: an example of Polymer & Angular 2 from Angular U using alpha-26: https://angularu.com/VideoSession/2015sf/componentize-your-app-with-polymer-elements/. Starts at 32:20 minutes in.

like image 52
shmck Avatar answered Nov 16 '22 08:11

shmck


Make sure you use at least zone.js v0.5.4 within your angular2 setup. The patch for polymer from robdodson got merged since then.

like image 1
rotzoll Avatar answered Nov 16 '22 06:11

rotzoll