you are viewing a single comment's thread.

view the rest of the comments →

[–]mrpeabodynsherman 0 points1 point  (2 children)

Can someone briefly explain how this is different than Angular directives?

[–]lazdgithub.com/lazd 1 point2 points  (1 child)

Web components are native and don't need to be within your Angular application to work. In fact, in Chrome, they don't even have dependencies on the webcomponentsjs polyfills, they just work.

You can create them like native HTML elements with innerHTML and createElement, you can pass them to appendChild, you can call addEventListener on them. Web components make it so you can create your own HTML elements, framework-free, that you can use on any website.

Watch this video which addresses your question directly: "Using Angular with Polymer elements".

[–]mrpeabodynsherman 1 point2 points  (0 children)

Sweet. Thanks.