I am looking into structuring vanilla web-components. I have previously used Polymer and like the fact that you can have the template, styles and JavaScript in one file for your component. I want to achieve this with 'vanilla' web components...
Consider, I have few elements which use Shadow DOM to hide their internal div-soup and layout.  Even tough they are different, they share the same CSS style sheet, as they are using the same set of elements that are supposed to be styled in consisten...
Ideally, I'd like to create a stand-alone Angular 2 component (with tests) and then re-use it between two or three different Angular 2 sites. What are the good ways to achieve this? And a bonus question - do any 3rd party Angular 2 components exi...
I'm trying to detect whether a custom element with a specific name was registered or not. Is there a way to make such check?  Or is there a way to get list of registered custom elements?  I do document.registerElement, but what else is there? Is...
I was listening to this episode of JavaScript Jabber:  http://javascriptjabber.com/120-jsj-google-polymer-with-rob-dodson-and-eric-bidelman/  At one point Rob says:     And everyone has this first inclination, because it makes so much sense. You’re...
In Javascript, I am trying to dynamically create an HTML <template> element, append an <h1> element as its child, clone the template's contents, and then append the template to the document body.  The problem is when I access the cont...
I am trying to unit test a very simple web-component. I don'ty know what would be some of recommended tools for that. At this moment I am trying by using wct and I am facing some issue that I didn't find anyone facing same issue. That said, I...
I'm trying to build a Angular 2 component which displays a list of options with radios. It works fine but it the answer field of the component, which is bound inside [(ng-model)]="answer", won't update when selecting one of the option...
I'm playing around with v1 web components. According to Eric Bidelman in Custom elements v1: reusable web components, a v1 web component can be defined and created with:  class App extends HTMLElement {    attachedCallback() {     this.attachShad...
Context:  I am carrying out tests about web component composition in different contexts. Particularly I am trying to relate several web component by getting access to one of them from another one by a searching process within the DOM / Shadow DOM of...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.