Top "Web-component" questions

Web components are reusable client-side elements made using native code or third party libraries.

Pros and Cons of Facebook's React vs. Web Components (Polymer)

What are the main benefits of Facebook's React over the upcoming Web Components spec and vice versa (or perhaps a …

javascript html polymer reactjs web-component
angular 1.5 component / default value for @ binding

Is there any way to specify the default value for an @ binding of a component. I've seen instruction on how …

angularjs binding web-component
extending HTMLElement: Constructor fails when webpack was used

I got the following TypeScript program transpiled to ES5: File 1: class BaseElement extends HTMLElement { constructor() { super(); } } File 2: import {BaseElement} from …

javascript typescript webpack web-component
Data-binding between nested polymer elements

Suppose I have two distinct polymer-elements One should be embedded inside the other using the content placeholder. Is it possible …

data-binding polymer web-component shadow-dom
Import HTML document using HTML link rel

I am trying to import an HTML document into my main document using <link rel="import" href="my-tabs.html"&…

javascript html web-component html-imports
Passing form to AngularJS component for validation

I'm moving my legacy code base to the new component architecture promoted with AngularJS 1.5. I encountered an issue when doing …

javascript angularjs web-component
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry at http://127.0.0.1:8000/components/@…

polymer web-component custom-element polymer-3.x
Do Custom Elements require a dash in their name?

Is it possible to name your own custom elements <date>, <person>, <city> or others …

polymer web-component x-tag
How to use global css styles in shadow dom

Shadow dom encapsulate css styles, selectors don't cross the shadow boundary. Question: How to use global common css styles in …

javascript web-component shadow-dom
Dynamically load Web Components / HTML Imports?

How would you go about dynamically loading a web component - in response to a url route change for example? …

javascript html polymer web-component dynamic-script-loading