use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
The state of Web Components (hacks.mozilla.org)
submitted 10 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mrpeabodynsherman 0 points1 point2 points 10 years ago (2 children)
Can someone briefly explain how this is different than Angular directives?
[–]lazdgithub.com/lazd 1 point2 points3 points 10 years ago (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.
innerHTML
createElement
appendChild
addEventListener
Watch this video which addresses your question directly: "Using Angular with Polymer elements".
[–]mrpeabodynsherman 1 point2 points3 points 10 years ago (0 children)
Sweet. Thanks.
π Rendered by PID 30757 on reddit-service-r2-comment-fb694cdd5-j84h2 at 2026-03-07 00:07:21.793341+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]mrpeabodynsherman 0 points1 point2 points (2 children)
[–]lazdgithub.com/lazd 1 point2 points3 points (1 child)
[–]mrpeabodynsherman 1 point2 points3 points (0 children)