Reputation: 10350
We have to work with a CMS that can only be extended with web components
, but as we have complex modules we would like to write our modules in Angular 4
(also, for other reasons, we are forced to use Angular
instead of, lets say, React
).
Is it possible to write an Angular 4
app and wrap it in a web component
?
Upvotes: 5
Views: 1606
Reputation: 229
You could, but I wouldn't consider it the best idea. There are a few things you have to take under consideration.
My two cents: When you want to run multiple physical angular applications in one application use iframes and communicate through document events. Obviously that has some performance tradeoffs if you don't manage them correctly. I've created a presentation that might answer a few more of your questions: https://www.slideshare.net/BrechtBilliet/agular-in-a-microservices-world
Upvotes: 7