Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

are angular components the same as custom elements (from web components technology)?

I am looking at angular 4.0 and I have done a bit of Web components with Polymer. Angular components and custom elements in Polymer look the same from use case point of view. The angular components also provide some framework specific lifecycle callbacks.

What are the difference if any ?

like image 228
prk68 Avatar asked Oct 18 '25 02:10

prk68


1 Answers

There is no relation between Angular components and web components. Angular components are only reusable in other Angular components.

There is an ongoing effort (currently only experimental) to change that - Angular elements https://moduscreate.com/blog/angular-elements-ngcomponents-everywhere/

See also

  • Does Angular2 use Web Components?
  • What is the difference between Angular 2 Components and Web Components?
  • How can I convert angular 2 components to webcomponents?
  • WebComponent implementation in Angular 2+
like image 132
Günter Zöchbauer Avatar answered Oct 19 '25 18:10

Günter Zöchbauer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!