Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Technical concepts of Angular Elements and Stencil

Are the technical concepts of Angular Elements and Stencil similar?

Angular Elements will be a new feature in Angular 6, where u can basically wrap your written Angular component as a Web Component. In my understanding the generated Custom Element is just a bridge to Angular, so we still have to ship Angular.

Stencil, on the other side, claims to be a compiler that generates Web Components. So the generated Custom Element is not just a bridge to something?

Did i get that right?

like image 540
ChrisY Avatar asked Apr 20 '18 09:04

ChrisY


1 Answers

You shouldn't have to ship Angular as you put it. Angular Elements will allow us to use Angular components without the whole Angular Ecosystem. So if you had a React app or a VueJS app, you could take your Angular Element (thanks to Custom Element) and just plop it into those apps.

Rob Wormald did a cool talk about them with all the deets at ng-conf this year. I'd check that out for the latest info.

like image 101
AlyssaNicoll Avatar answered Oct 17 '22 23:10

AlyssaNicoll