4

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 ?

prk68
  • 176
  • 11

1 Answers1

5

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

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • so if I understand correctly, when all browsers start supporting web components natively, angular components wont be needed. The angular library might still be used for other things. – prk68 Nov 27 '17 at 00:15
  • 3
    No, as I said, Angular components and web components are not related. When web components are fully supported everywhere, Angular components will switch to native shadow DOM and then Angulars emulation of the shadow DOM will become obsolete. – Günter Zöchbauer Nov 27 '17 at 03:58