mercredi 11 janvier 2017

Embed angular 2 app inside a web component (i.e. polymer)

I've been looking around for this for quite a bit now, and to me it seems like there's no real approach so far.

So what I want to achieve is basically to encapsulate an angular 2 (or react, vue, whatever JS framework) app / component inside of a web component, best case would be a polymer component. The cause would be to easily reuse the component written in let's say angular 2, maybe even together with components written in other frameworks.

Maybe there's sth wrong with my basic understanding of WC, but I consider any combination of JS, HTML and CSS to be embeddable inside a WC. Any JS framework is not really anything else in the end, right? So shouldn't this be possible, at least in a very hacky way?

I hope this is enough to understand what I'm trying to do, any help is highly appreciated. As I said, I've been looking around already, so if someone knows any references that might answer the question, perfect.




Aucun commentaire:

Enregistrer un commentaire