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 am creating a web component using native implementation, which in it's html template has links to images. However, those links only work if they are absolute, or relative to the main document, which means, that that component is not reusable, o...
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...
How can I enable Custom Elements in Firefox 31/32?  According to Are We Componentized yet? there is "in progress support" but I can't see it, and googling was unhelpful....
dropdown menu is created in shadowDOM  almost perfect,  but the problem is how to hide the dropdown menu when click on any where else in window  class NavComponent extends HTMLElement {     constructor() {         super();          let template = doc...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.